<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.3"/>
<title>Duye SDK User Wizard: Z:/duye/src/duyebase/utils/duye_xml.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Duye SDK User Wizard
   &#160;<span id="projectnumber">V1.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.3 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_331246d48b7bdbf84ac81996db21b8ff.html">duyebase</a></li><li class="navelem"><a class="el" href="dir_25f149ed903b32b8f01342573045065c.html">utils</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">duye_xml.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/***********************************************************************************</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">**  </span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">* @copyright (c) 2013-2100, ChengDu Duyer Technology Co., LTD. All Right Reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">*</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">************************************************************************************/</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &lt;ctype.h&gt;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#include &lt;assert.h&gt;</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;sstream&gt;</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="keyword">namespace </span>duye {</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">class </span>XmlDocument;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">class </span>XmlElement;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">class </span>XmlComment;</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="keyword">class </span>XmlUnknown;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">class </span>XmlAttribute;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">class </span>XmlText;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keyword">class </span>XmlDeclaration;</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keyword">class </span>XmlParsingData;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="keyword">const</span> <span class="keywordtype">int</span> XML_MAJOR_VERSION = 2;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">const</span> <span class="keywordtype">int</span> XML_MINOR_VERSION = 6;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="keyword">const</span> <span class="keywordtype">int</span> XML_PATCH_VERSION = 2;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div>
<div class="line"><a name="l00046"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_cursor.html">   46</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_cursor.html" title="Internal structure for tracking location of items in the XML file.">XmlCursor</a> {</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <a class="code" href="classduye_1_1_xml_cursor.html" title="Internal structure for tracking location of items in the XML file.">XmlCursor</a>() { </div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        clear(); </div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    }</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;    </div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    <span class="keywordtype">void</span> clear() { </div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        m_row = m_col = -1; </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    }</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordtype">int</span> m_row;  <span class="comment">// 0 based.</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordtype">int</span> m_col;  <span class="comment">// 0 based.</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;};</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_visitor.html">   78</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_visitor.html" title="Implements the interface to the &quot;Visitor pattern&quot; (see the Accept() method.) If you call the Accept()...">XmlVisitor</a> {</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classduye_1_1_xml_visitor.html" title="Implements the interface to the &quot;Visitor pattern&quot; (see the Accept() method.) If you call the Accept()...">XmlVisitor</a>() {}</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;</div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_visitor.html#a98f4ec3a62fca202d5ca357249cfc7ce">   83</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_visitor.html#a98f4ec3a62fca202d5ca357249cfc7ce" title="Visit a document.">visitEnter</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>&amp; <span class="comment">/*doc*/</span>) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_visitor.html#acac3f70e298fb825327d7bf0cfd87651">   85</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_visitor.html#acac3f70e298fb825327d7bf0cfd87651" title="Visit a document.">visitExit</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>&amp; <span class="comment">/*doc*/</span>)  { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_visitor.html#a9b9a0abd70e1724ea4d8d6de512928ce">   88</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_visitor.html#a9b9a0abd70e1724ea4d8d6de512928ce" title="Visit an element.">visitEnter</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>&amp; <span class="comment">/*element*/</span>, <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* <span class="comment">/*firstAttribute*/</span>) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_visitor.html#a07f65fb94df4da056b508d8d43b08492">   90</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_visitor.html#a07f65fb94df4da056b508d8d43b08492" title="Visit an element.">visitExit</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>&amp; <span class="comment">/*element*/</span>) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_visitor.html#a9a405f40e1300de455fc05712cd98203">   93</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_visitor.html#a9a405f40e1300de455fc05712cd98203" title="Visit a declaration.">visit</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file.">XmlDeclaration</a>&amp; <span class="comment">/*declaration*/</span>) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_visitor.html#a5994fbfcbdb289527393e3695e21b3fb">   95</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_visitor.html#a5994fbfcbdb289527393e3695e21b3fb" title="Visit a text node.">visit</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().">XmlText</a>&amp; <span class="comment">/*text*/</span>) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_visitor.html#a3cef74e4d3a171c1f528225af3fccb80">   97</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_visitor.html#a3cef74e4d3a171c1f528225af3fccb80" title="Visit a comment node.">visit</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_comment.html" title="An XML comment.">XmlComment</a>&amp; <span class="comment">/*comment*/</span>) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_visitor.html#a59cb2c3a4d18c8d9be51d9c13f0109cf">   99</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_visitor.html#a59cb2c3a4d18c8d9be51d9c13f0109cf" title="Visit an unknown node.">visit</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>&amp; <span class="comment">/*unknown*/</span>) { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;};</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment">// Only used by Attribute::Query functions</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="keyword">enum</span> {</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    XML_SUCCESS,</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    XML_NO_ATTRIBUTE,</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    XML_WRONG_TYPE</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;};</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;<span class="comment">// Used by the parsing routines.</span></div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="keyword">enum</span> XmlEncoding {</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;    XML_ENCODING_UNKNOWN,</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    XML_ENCODING_UTF8,</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;    XML_ENCODING_LEGACY</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;};</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="keyword">const</span> XmlEncoding XML_DEFAULT_ENCODING = XML_ENCODING_UNKNOWN;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div>
<div class="line"><a name="l00142"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_base.html">  142</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_base.html" title="XmlBase is a base class for every class in GnyXml. It does little except to establish that GnyXml cla...">XmlBase</a> {</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    <a class="code" href="classduye_1_1_xml_base.html" title="XmlBase is a base class for every class in GnyXml. It does little except to establish that GnyXml cla...">XmlBase</a>() : <a class="code" href="classduye_1_1_xml_base.html#aba0ab14e19dc483be84e5e11c65150b8" title="Field containing a generic user pointer.">m_userData</a>(0) {}</div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classduye_1_1_xml_base.html" title="XmlBase is a base class for every class in GnyXml. It does little except to establish that GnyXml cla...">XmlBase</a>() {}</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_base.html#aeb28d8aeec84aad3ce290c6cc3a5ec06" title="All GnyXml classes can print themselves to a filestream or the string class (GXmlString in non-STL mo...">print</a>(FILE* cfile, <span class="keywordtype">int</span> depth) <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> xmlToStr(std::string&amp; outXml, <span class="keywordtype">int</span> depth) <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;</div>
<div class="line"><a name="l00171"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_base.html#a2f278b32e215015c37f067c37cbf7b8e">  171</a></span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_base.html#a2f278b32e215015c37f067c37cbf7b8e" title="The world does not agree on whether white space should be kept or not. In order to make everyone happ...">setCondenseWhiteSpace</a>(<span class="keywordtype">bool</span> condense) { m_condenseWhiteSpace = condense; }</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;</div>
<div class="line"><a name="l00174"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_base.html#ab58f4134b1a9f5ffca01c7ba6ef7fde3">  174</a></span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_base.html#ab58f4134b1a9f5ffca01c7ba6ef7fde3" title="Return the current white space setting.">isWhiteSpaceCondensed</a>() { <span class="keywordflow">return</span> m_condenseWhiteSpace; }</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div>
<div class="line"><a name="l00194"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_base.html#abd456d36d5f4362bfb8405e4f9fa8334">  194</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_base.html#abd456d36d5f4362bfb8405e4f9fa8334">row</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_location.m_row + 1; }</div>
<div class="line"><a name="l00195"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_base.html#a2fe47c66f1c19b535d7a935e906654c0">  195</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_base.html#a2fe47c66f1c19b535d7a935e906654c0" title="See Row()">column</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_location.m_col + 1; }    </div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;</div>
<div class="line"><a name="l00197"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_base.html#a1650d1d2f5b74d58441a1f44994fd3cb">  197</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_base.html#a1650d1d2f5b74d58441a1f44994fd3cb" title="Set a pointer to arbitrary user data.">setUserData</a>(<span class="keywordtype">void</span>* user) { <a class="code" href="classduye_1_1_xml_base.html#aba0ab14e19dc483be84e5e11c65150b8" title="Field containing a generic user pointer.">m_userData</a> = user; } </div>
<div class="line"><a name="l00198"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_base.html#ae1414fc996e956dd296b77cea25fc959">  198</a></span>&#160;    <span class="keywordtype">void</span>* <a class="code" href="classduye_1_1_xml_base.html#ae1414fc996e956dd296b77cea25fc959" title="Get a pointer to arbitrary user data.">getUserData</a>() { <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_base.html#aba0ab14e19dc483be84e5e11c65150b8" title="Field containing a generic user pointer.">m_userData</a>; }  </div>
<div class="line"><a name="l00199"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_base.html#a0fa2e4be3e635011c3aea94c2a9bbd10">  199</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">void</span>* <a class="code" href="classduye_1_1_xml_base.html#a0fa2e4be3e635011c3aea94c2a9bbd10" title="Get a pointer to arbitrary user data.">getUserData</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_base.html#aba0ab14e19dc483be84e5e11c65150b8" title="Field containing a generic user pointer.">m_userData</a>; }  </div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;</div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;    <span class="comment">// Table that returs, for a given lead byte, the total number of bytes</span></div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;    <span class="comment">// in the UTF-8 sequence.</span></div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> m_utf8ByteTable[256];</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* parse(<span class="keyword">const</span> <span class="keywordtype">char</span>* p, </div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;        XmlParsingData* data, </div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;        XmlEncoding encoding <span class="comment">/*= XML_ENCODING_UNKNOWN */</span>) = 0;</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_base.html#a7324491537ebb8bf1350d6b728ebbe77" title="Expands entities in a string. Note this should not contian the tag&#39;s &#39;&lt;&#39;, &#39;&gt;&#39;, etc, or they will be transformed into entities!">encodeString</a>(<span class="keyword">const</span> std::string&amp; str, std::string* out);</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;    <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        XML_NO_ERROR = 0,</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        XML_ERROR,</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;        XML_ERROR_OPENING_FILE,</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        XML_ERROR_PARSING_ELEMENT,</div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        XML_ERROR_FAILED_TO_READ_ELEMENT_NAME,</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;        XML_ERROR_READING_ELEMENT_VALUE,</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;        XML_ERROR_READING_ATTRIBUTES,</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        XML_ERROR_PARSING_EMPTY,</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        XML_ERROR_READING_END_TAG,</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        XML_ERROR_PARSING_UNKNOWN,</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;        XML_ERROR_PARSING_COMMENT,</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;        XML_ERROR_PARSING_DECLARAGON,</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        XML_ERROR_DOCUMENT_EMPTY,</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        XML_ERROR_EMBEDDED_NULL,</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;        XML_ERROR_PARSING_CDATA,</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;        XML_ERROR_DOCUMENT_TOP_ONLY,</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;        XML_ERROR_STRING_COUNT</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;    };</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* skipWhiteSpace(<span class="keyword">const</span> <span class="keywordtype">char</span>*, XmlEncoding encoding);</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    </div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> isWhiteSpace(<span class="keywordtype">char</span> c) { </div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        <span class="keywordflow">return</span> (isspace((<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>)c) || c == <span class="charliteral">&#39;\n&#39;</span> || c == <span class="charliteral">&#39;\r&#39;</span>); </div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    }</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;</div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> isWhiteSpace(<span class="keywordtype">int</span> c) {</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;        <span class="keywordflow">if</span> (c &lt; 256) {</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;            <span class="keywordflow">return</span> isWhiteSpace((<span class="keywordtype">char</span>)c);</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;        }</div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;        </div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">false</span>;   <span class="comment">// Again, only truly correct for English/Latin...but usually works.</span></div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;    }</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> streamWhiteSpace(std::istream* in, std::string* tag);</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> streamTo(std::istream* in, <span class="keywordtype">int</span> character, std::string* tag);</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;</div>
<div class="line"><a name="l00258"></a><span class="lineno">  258</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_base.html#a5ebf61d90446334388e399c00aa56b68" title="Reads an XML name into the string provided. Returns a pointer just past the last character of the nam...">readName</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* p, std::string* name, XmlEncoding encoding);</div>
<div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div>
<div class="line"><a name="l00264"></a><span class="lineno">  264</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_base.html#a6c6920f167a01923f80d1a36a63cbd88" title="Reads text. Returns a pointer past the given end tag. Wickedly complex options, but it keeps the (sen...">readText</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* in,             <span class="comment">// where to start</span></div>
<div class="line"><a name="l00265"></a><span class="lineno">  265</span>&#160;        std::string* text,          <span class="comment">// the string read</span></div>
<div class="line"><a name="l00266"></a><span class="lineno">  266</span>&#160;        <span class="keywordtype">bool</span> ignoreWhiteSpace,      <span class="comment">// whether to keep the white space</span></div>
<div class="line"><a name="l00267"></a><span class="lineno">  267</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>* endTag,         <span class="comment">// what ends this text</span></div>
<div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;        <span class="keywordtype">bool</span> ignoreCase,            <span class="comment">// whether to ignore case in the end tag</span></div>
<div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;        XmlEncoding encoding);  <span class="comment">// the current encoding</span></div>
<div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;</div>
<div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    <span class="comment">// If an entity has been found, transform it into a character.</span></div>
<div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* getEntity(<span class="keyword">const</span> <span class="keywordtype">char</span>* in, <span class="keywordtype">char</span>* value, <span class="keywordtype">int</span>* length, XmlEncoding encoding);</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;    <span class="comment">// Get a character, while interpreting entities.</span></div>
<div class="line"><a name="l00275"></a><span class="lineno">  275</span>&#160;    <span class="comment">// The length can be from 0 to 4 bytes.</span></div>
<div class="line"><a name="l00276"></a><span class="lineno">  276</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* getChar(<span class="keyword">const</span> <span class="keywordtype">char</span>* p, <span class="keywordtype">char</span>* value, <span class="keywordtype">int</span>* length, XmlEncoding encoding) {</div>
<div class="line"><a name="l00277"></a><span class="lineno">  277</span>&#160;        assert(p);</div>
<div class="line"><a name="l00278"></a><span class="lineno">  278</span>&#160;        <span class="keywordflow">if</span> (encoding == XML_ENCODING_UTF8) {</div>
<div class="line"><a name="l00279"></a><span class="lineno">  279</span>&#160;            *length = m_utf8ByteTable[*((<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>*)p)];</div>
<div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;            assert(*length &gt;= 0 &amp;&amp; *length &lt; 5);</div>
<div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;            *length = 1;</div>
<div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;        }</div>
<div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div>
<div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;        <span class="keywordflow">if</span> (*length == 1) {</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;            <span class="keywordflow">if</span> (*p == <span class="charliteral">&#39;&amp;&#39;</span>) {</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;                <span class="keywordflow">return</span> getEntity(p, value, length, encoding);</div>
<div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;            }</div>
<div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;</div>
<div class="line"><a name="l00290"></a><span class="lineno">  290</span>&#160;            *value = *p;</div>
<div class="line"><a name="l00291"></a><span class="lineno">  291</span>&#160;            <span class="keywordflow">return</span> p + 1;</div>
<div class="line"><a name="l00292"></a><span class="lineno">  292</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (*length) {</div>
<div class="line"><a name="l00293"></a><span class="lineno">  293</span>&#160;            <span class="comment">// strncpy( _value, p, *length );</span></div>
<div class="line"><a name="l00294"></a><span class="lineno">  294</span>&#160;            <span class="comment">// lots of compilers don&#39;t like this function (unsafe),</span></div>
<div class="line"><a name="l00295"></a><span class="lineno">  295</span>&#160;           <span class="comment">// and the null terminator isn&#39;t needed</span></div>
<div class="line"><a name="l00296"></a><span class="lineno">  296</span>&#160;            <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; p[i] &amp;&amp; i &lt; *length; i++) {</div>
<div class="line"><a name="l00297"></a><span class="lineno">  297</span>&#160;                value[i] = p[i];</div>
<div class="line"><a name="l00298"></a><span class="lineno">  298</span>&#160;            }</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;            </div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;            <span class="keywordflow">return</span> p + (*length);</div>
<div class="line"><a name="l00301"></a><span class="lineno">  301</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00302"></a><span class="lineno">  302</span>&#160;            <span class="comment">// Not valid text.</span></div>
<div class="line"><a name="l00303"></a><span class="lineno">  303</span>&#160;            <span class="keywordflow">return</span> 0;</div>
<div class="line"><a name="l00304"></a><span class="lineno">  304</span>&#160;        }</div>
<div class="line"><a name="l00305"></a><span class="lineno">  305</span>&#160;    }</div>
<div class="line"><a name="l00306"></a><span class="lineno">  306</span>&#160;</div>
<div class="line"><a name="l00307"></a><span class="lineno">  307</span>&#160;    <span class="comment">// Return true if the next characters in the stream are any of the endTag sequences.</span></div>
<div class="line"><a name="l00308"></a><span class="lineno">  308</span>&#160;    <span class="comment">// Ignore case only works for english, and should only be relied on when comparing</span></div>
<div class="line"><a name="l00309"></a><span class="lineno">  309</span>&#160;    <span class="comment">// to English words: StringEqual( p, &quot;version&quot;, true ) is fine.</span></div>
<div class="line"><a name="l00310"></a><span class="lineno">  310</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> stringEqual(<span class="keyword">const</span> <span class="keywordtype">char</span>* p,</div>
<div class="line"><a name="l00311"></a><span class="lineno">  311</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>* endTag,</div>
<div class="line"><a name="l00312"></a><span class="lineno">  312</span>&#160;        <span class="keywordtype">bool</span> ignoreCase,</div>
<div class="line"><a name="l00313"></a><span class="lineno">  313</span>&#160;        XmlEncoding encoding);</div>
<div class="line"><a name="l00314"></a><span class="lineno">  314</span>&#160;</div>
<div class="line"><a name="l00315"></a><span class="lineno">  315</span>&#160;    <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* m_errorString[XML_ERROR_STRING_COUNT];</div>
<div class="line"><a name="l00316"></a><span class="lineno">  316</span>&#160;    XmlCursor m_location;</div>
<div class="line"><a name="l00317"></a><span class="lineno">  317</span>&#160;</div>
<div class="line"><a name="l00319"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_base.html#aba0ab14e19dc483be84e5e11c65150b8">  319</a></span>&#160;    <span class="keywordtype">void</span>* <a class="code" href="classduye_1_1_xml_base.html#aba0ab14e19dc483be84e5e11c65150b8" title="Field containing a generic user pointer.">m_userData</a>;</div>
<div class="line"><a name="l00320"></a><span class="lineno">  320</span>&#160;    </div>
<div class="line"><a name="l00321"></a><span class="lineno">  321</span>&#160;    <span class="comment">// None of these methods are reliable for any language except English.</span></div>
<div class="line"><a name="l00322"></a><span class="lineno">  322</span>&#160;    <span class="comment">// Good for approximation, not great for accuracy.</span></div>
<div class="line"><a name="l00323"></a><span class="lineno">  323</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> isAlpha(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> anyByte, XmlEncoding encoding);</div>
<div class="line"><a name="l00324"></a><span class="lineno">  324</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> isAlphaNum(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> anyByte, XmlEncoding encoding);</div>
<div class="line"><a name="l00325"></a><span class="lineno">  325</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">int</span> toLower(<span class="keywordtype">int</span> v, XmlEncoding encoding) {</div>
<div class="line"><a name="l00326"></a><span class="lineno">  326</span>&#160;        <span class="keywordflow">if</span> (encoding == XML_ENCODING_UTF8) {</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;            <span class="keywordflow">if</span> (v &lt; 128) {</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;                <span class="keywordflow">return</span> tolower(v);</div>
<div class="line"><a name="l00329"></a><span class="lineno">  329</span>&#160;            }</div>
<div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;            <span class="keywordflow">return</span> v;</div>
<div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;        } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;            <span class="keywordflow">return</span> tolower(v);</div>
<div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;        }</div>
<div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;    }</div>
<div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;     </div>
<div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">void</span> convertUTF32ToUTF8(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> input, <span class="keywordtype">char</span>* output, <span class="keywordtype">int</span>* length);</div>
<div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;</div>
<div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;    XmlBase(<span class="keyword">const</span> XmlBase&amp;);    <span class="comment">// not implemented.</span></div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;    <span class="keywordtype">void</span> operator = (<span class="keyword">const</span> XmlBase&amp; base);    <span class="comment">// not allowed.</span></div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div>
<div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;    <span class="keyword">struct </span>Entity {</div>
<div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>*     m_str;</div>
<div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;        <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>    m_strLength;</div>
<div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;        <span class="keywordtype">char</span>            m_chr;</div>
<div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;     };</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;    </div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;    <span class="keyword">enum</span> {</div>
<div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;        NUM_ENTITY = 5,</div>
<div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;        NUM_ENTITY_LENGTH = 6</div>
<div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;    };</div>
<div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;    </div>
<div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;    <span class="keyword">static</span> Entity    m_entity[NUM_ENTITY];</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span>      m_condenseWhiteSpace;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;};</div>
<div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;</div>
<div class="line"><a name="l00364"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html">  364</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a> : <span class="keyword">public</span> <a class="code" href="classduye_1_1_xml_base.html" title="XmlBase is a base class for every class in GnyXml. It does little except to establish that GnyXml cla...">XmlBase</a> {</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>;</div>
<div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;</div>
<div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;    <span class="keyword">friend</span> std::istream&amp; <a class="code" href="classduye_1_1_xml_node.html#a8ffefc2f1c3d323322443668a6109ff1" title="An input stream operator, for every class. Tolerant of newlines and formatting, but doesn&#39;t expect th...">operator &gt;&gt; </a>(std::istream&amp; in, <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>&amp; base);</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;</div>
<div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;    <span class="keyword">friend</span> std::ostream&amp; <a class="code" href="classduye_1_1_xml_node.html#a01de8afa8b807269c8d58d7f045a0bbb" title="An output stream operator, for every class. Note that this outputs without any newlines or formatting...">operator &lt;&lt; </a>(std::ostream&amp; out, <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>&amp; base);</div>
<div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;</div>
<div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;    <span class="keyword">friend</span> std::string&amp; <a class="code" href="classduye_1_1_xml_node.html#a01de8afa8b807269c8d58d7f045a0bbb" title="An output stream operator, for every class. Note that this outputs without any newlines or formatting...">operator &lt;&lt; </a>(std::string&amp; out, <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>&amp; base);</div>
<div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;</div>
<div class="line"><a name="l00402"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#ae4027c9a45dd41b1672ce04e9b141947">  402</a></span>&#160;    <span class="keyword">enum</span> <a class="code" href="classduye_1_1_xml_node.html#ae4027c9a45dd41b1672ce04e9b141947" title="The types of XML nodes supported by GnyXml. (All the unsupported types are picked up by UNKNOWN...">NodeType</a> {</div>
<div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;        NYXML_DOCUMENT,</div>
<div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;        NYXML_ELEMENT,</div>
<div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;        NYXML_COMMENT,</div>
<div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;        NYXML_UNKNOWN,</div>
<div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;        NYXML_TEXT,</div>
<div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;        NYXML_DECLARAGON,</div>
<div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;        NYXML_TYPECOUNT</div>
<div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;    };</div>
<div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;</div>
<div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>();</div>
<div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;</div>
<div class="line"><a name="l00427"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a6382aca61aaacf168916b9a8d917dc47">  427</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_node.html#a6382aca61aaacf168916b9a8d917dc47" title="The meaning of &#39;value&#39; changes for the specific type of XmlNode.">value</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_value.c_str(); }</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;</div>
<div class="line"><a name="l00434"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#ab45adf561c30ab37fd931a1168f5d078">  434</a></span>&#160;    <span class="keyword">const</span> std::string&amp; <a class="code" href="classduye_1_1_xml_node.html#ab45adf561c30ab37fd931a1168f5d078" title="Return Value() as a std::string. If you only use STL, this is more efficient than calling Value()...">valueStr</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_value; }</div>
<div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;    <span class="keyword">const</span> std::string&amp; valueTStr()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_value; }</div>
<div class="line"><a name="l00436"></a><span class="lineno">  436</span>&#160;</div>
<div class="line"><a name="l00447"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a0bb13ec0183c9e10df92e0cd66d3a4db">  447</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_node.html#a0bb13ec0183c9e10df92e0cd66d3a4db" title="Changes the value of the node. Defined as:">setValue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value) { m_value = <a class="code" href="classduye_1_1_xml_node.html#a6382aca61aaacf168916b9a8d917dc47" title="The meaning of &#39;value&#39; changes for the specific type of XmlNode.">value</a>;}</div>
<div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;</div>
<div class="line"><a name="l00450"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#aae6d568639c89144f39d316c6cbc430e">  450</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_node.html#aae6d568639c89144f39d316c6cbc430e" title="STL std::string form.">setValue</a>(<span class="keyword">const</span> std::string&amp; value) { m_value = <a class="code" href="classduye_1_1_xml_node.html#a6382aca61aaacf168916b9a8d917dc47" title="The meaning of &#39;value&#39; changes for the specific type of XmlNode.">value</a>; }</div>
<div class="line"><a name="l00451"></a><span class="lineno">  451</span>&#160;</div>
<div class="line"><a name="l00453"></a><span class="lineno">  453</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_node.html#a82cb9c5e8aa182d74f89a93d2aa7fc1e" title="Delete all the children of this node. Does not affect &#39;this&#39;.">clear</a>();</div>
<div class="line"><a name="l00454"></a><span class="lineno">  454</span>&#160;</div>
<div class="line"><a name="l00456"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#ae28c258f708b9c92cb0ae17eaa3d272f">  456</a></span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#ae28c258f708b9c92cb0ae17eaa3d272f" title="One step up the DOM.">parent</a>() { <span class="keywordflow">return</span> m_parent; }</div>
<div class="line"><a name="l00457"></a><span class="lineno">  457</span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#ae28c258f708b9c92cb0ae17eaa3d272f" title="One step up the DOM.">parent</a>()<span class="keyword"> const</span>{ <span class="keywordflow">return</span> m_parent; }</div>
<div class="line"><a name="l00458"></a><span class="lineno">  458</span>&#160;</div>
<div class="line"><a name="l00459"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a7ba1392b6399679fafd66f75c02a4493">  459</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a7ba1392b6399679fafd66f75c02a4493" title="The first child of this node. Will be null if there are no children.">firstChild</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_firstChild; }  </div>
<div class="line"><a name="l00460"></a><span class="lineno">  460</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a7ba1392b6399679fafd66f75c02a4493" title="The first child of this node. Will be null if there are no children.">firstChild</a>() { <span class="keywordflow">return</span> m_firstChild; }</div>
<div class="line"><a name="l00461"></a><span class="lineno">  461</span>&#160;    <span class="keyword">const</span> XmlNode* <a class="code" href="classduye_1_1_xml_node.html#a7ba1392b6399679fafd66f75c02a4493" title="The first child of this node. Will be null if there are no children.">firstChild</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value) <span class="keyword">const</span>;         </div>
<div class="line"><a name="l00462"></a><span class="lineno">  462</span>&#160;</div>
<div class="line"><a name="l00463"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a7ff2059038179113178c533aa8f91502">  463</a></span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a7ff2059038179113178c533aa8f91502" title="The first child of this node with the matching &#39;value&#39;. Will be null if none found.">firstChild</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value) {</div>
<div class="line"><a name="l00464"></a><span class="lineno">  464</span>&#160;        <span class="comment">// Call through to the const version - safe since nothing is changed. Exiting syntax: cast this to a const (always safe)</span></div>
<div class="line"><a name="l00465"></a><span class="lineno">  465</span>&#160;        <span class="comment">// call the method, cast the return back to non-const.</span></div>
<div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span><a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span><a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;firstChild(value));</div>
<div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;    }</div>
<div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;    </div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* lastChild()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_lastChild; }        </div>
<div class="line"><a name="l00470"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a4a3640ab750e961f0db14b7d21f45b1c">  470</a></span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a4a3640ab750e961f0db14b7d21f45b1c" title="The last child of this node. Will be null if there are no children.">lastChild</a>() { <span class="keywordflow">return</span> m_lastChild; }</div>
<div class="line"><a name="l00471"></a><span class="lineno">  471</span>&#160;    </div>
<div class="line"><a name="l00472"></a><span class="lineno">  472</span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* lastChild(<span class="keyword">const</span> <span class="keywordtype">char</span>* value) <span class="keyword">const</span>;          </div>
<div class="line"><a name="l00473"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a4f4989c879e6ec91d62db55e05a2b2b5">  473</a></span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a4f4989c879e6ec91d62db55e05a2b2b5" title="The last child of this node matching &#39;value&#39;. Will be null if there are no children.">lastChild</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value) {</div>
<div class="line"><a name="l00474"></a><span class="lineno">  474</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span><a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span><a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;lastChild(value));</div>
<div class="line"><a name="l00475"></a><span class="lineno">  475</span>&#160;    }</div>
<div class="line"><a name="l00476"></a><span class="lineno">  476</span>&#160;</div>
<div class="line"><a name="l00477"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a5ce00939080c451b714b0fcc340ca08c">  477</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a5ce00939080c451b714b0fcc340ca08c" title="STL std::string form.">firstChild</a>(<span class="keyword">const</span> std::string&amp; value)<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l00478"></a><span class="lineno">  478</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#a7ba1392b6399679fafd66f75c02a4493" title="The first child of this node. Will be null if there are no children.">firstChild</a>(value.c_str ());</div>
<div class="line"><a name="l00479"></a><span class="lineno">  479</span>&#160;    }    </div>
<div class="line"><a name="l00480"></a><span class="lineno">  480</span>&#160;    </div>
<div class="line"><a name="l00481"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a643876d58c6802c83d497490d5336c4c">  481</a></span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a643876d58c6802c83d497490d5336c4c" title="STL std::string form.">firstChild</a>(<span class="keyword">const</span> std::string&amp; value) {   </div>
<div class="line"><a name="l00482"></a><span class="lineno">  482</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#a7ba1392b6399679fafd66f75c02a4493" title="The first child of this node. Will be null if there are no children.">firstChild</a>(value.c_str()); </div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;    }  </div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;    </div>
<div class="line"><a name="l00485"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#aec689d59e23a15f5477f0339a2f4c4fc">  485</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#aec689d59e23a15f5477f0339a2f4c4fc" title="STL std::string form.">lastChild</a>(<span class="keyword">const</span> std::string&amp; value)<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l00486"></a><span class="lineno">  486</span>&#160;        <span class="keywordflow">return</span> lastChild(value.c_str ()); </div>
<div class="line"><a name="l00487"></a><span class="lineno">  487</span>&#160;    } </div>
<div class="line"><a name="l00488"></a><span class="lineno">  488</span>&#160;    </div>
<div class="line"><a name="l00489"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#ae2c9e2f7cf7fbd1f24e2e19db65bb262">  489</a></span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#ae2c9e2f7cf7fbd1f24e2e19db65bb262" title="STL std::string form.">lastChild</a>(<span class="keyword">const</span> std::string&amp; value) {   </div>
<div class="line"><a name="l00490"></a><span class="lineno">  490</span>&#160;        <span class="keywordflow">return</span> lastChild(value.c_str()); </div>
<div class="line"><a name="l00491"></a><span class="lineno">  491</span>&#160;    }   </div>
<div class="line"><a name="l00492"></a><span class="lineno">  492</span>&#160;</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a9210bb8d53337ae049942007860d07d3" title="An alternate way to walk the children of a node. One way to iterate over nodes is:">iterateChildren</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* previous) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00511"></a><span class="lineno">  511</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a9210bb8d53337ae049942007860d07d3" title="An alternate way to walk the children of a node. One way to iterate over nodes is:">iterateChildren</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* previous) {</div>
<div class="line"><a name="l00512"></a><span class="lineno">  512</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span><a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span><a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;iterateChildren(previous));</div>
<div class="line"><a name="l00513"></a><span class="lineno">  513</span>&#160;    }</div>
<div class="line"><a name="l00514"></a><span class="lineno">  514</span>&#160;</div>
<div class="line"><a name="l00516"></a><span class="lineno">  516</span>&#160;    <span class="keyword">const</span> XmlNode* <a class="code" href="classduye_1_1_xml_node.html#a9210bb8d53337ae049942007860d07d3" title="An alternate way to walk the children of a node. One way to iterate over nodes is:">iterateChildren</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value, <span class="keyword">const</span> XmlNode* previous) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00517"></a><span class="lineno">  517</span>&#160;    XmlNode* <a class="code" href="classduye_1_1_xml_node.html#a9210bb8d53337ae049942007860d07d3" title="An alternate way to walk the children of a node. One way to iterate over nodes is:">iterateChildren</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value, <span class="keyword">const</span> XmlNode* previous) {</div>
<div class="line"><a name="l00518"></a><span class="lineno">  518</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span>XmlNode*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span>XmlNode*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;iterateChildren(value, previous));</div>
<div class="line"><a name="l00519"></a><span class="lineno">  519</span>&#160;    }</div>
<div class="line"><a name="l00520"></a><span class="lineno">  520</span>&#160;</div>
<div class="line"><a name="l00521"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a4d2e2d6639987fdbb7c8f0f90e7857e9">  521</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a4d2e2d6639987fdbb7c8f0f90e7857e9" title="STL std::string form.">iterateChildren</a>(<span class="keyword">const</span> std::string&amp; value, <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* previous)<span class="keyword"> const </span>{   </div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#a9210bb8d53337ae049942007860d07d3" title="An alternate way to walk the children of a node. One way to iterate over nodes is:">iterateChildren</a> (value.c_str (), previous); </div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;    }   </div>
<div class="line"><a name="l00524"></a><span class="lineno">  524</span>&#160;    </div>
<div class="line"><a name="l00525"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a1e71e1b4bd65fc58568bd5cf29b64aad">  525</a></span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a1e71e1b4bd65fc58568bd5cf29b64aad" title="STL std::string form.">iterateChildren</a>(<span class="keyword">const</span> std::string&amp; value, <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* previous) {   </div>
<div class="line"><a name="l00526"></a><span class="lineno">  526</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#a9210bb8d53337ae049942007860d07d3" title="An alternate way to walk the children of a node. One way to iterate over nodes is:">iterateChildren</a>(value.c_str(), previous); </div>
<div class="line"><a name="l00527"></a><span class="lineno">  527</span>&#160;    }   </div>
<div class="line"><a name="l00528"></a><span class="lineno">  528</span>&#160;</div>
<div class="line"><a name="l00533"></a><span class="lineno">  533</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a6f8d2fe467e221f1c8426890200864fe" title="Add a new node related to this. Adds a child past the LastChild. Returns a pointer to the new object ...">insertEndChild</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>&amp; addThis);</div>
<div class="line"><a name="l00534"></a><span class="lineno">  534</span>&#160;</div>
<div class="line"><a name="l00545"></a><span class="lineno">  545</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a8e29358127db6027288425730b195543" title="Add a new node related to this. Adds a child past the LastChild.">linkEndChild</a>(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* addThis);</div>
<div class="line"><a name="l00546"></a><span class="lineno">  546</span>&#160;</div>
<div class="line"><a name="l00551"></a><span class="lineno">  551</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a86d4f238a5880bbc9ae7ffd4b1189725" title="Add a new node related to this. Adds a child before the specified child. Returns a pointer to the new...">insertBeforeChild</a>(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* beforeThis, <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>&amp; addThis);</div>
<div class="line"><a name="l00552"></a><span class="lineno">  552</span>&#160;</div>
<div class="line"><a name="l00557"></a><span class="lineno">  557</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a0fcf0c1bfe061bf20b934e1c9ca58d79" title="Add a new node related to this. Adds a child after the specified child. Returns a pointer to the new ...">insertAfterChild</a>(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* afterThis, <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>&amp; addThis);</div>
<div class="line"><a name="l00558"></a><span class="lineno">  558</span>&#160;</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#aec17d06c0a0c5f3bcc9a7ab73336c096" title="Replace a child of this node. Returns a pointer to the new object or NULL if an error occured...">replaceChild</a>(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* replaceThis, <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>&amp; withThis);</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;</div>
<div class="line"><a name="l00566"></a><span class="lineno">  566</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_node.html#aa5a8b29f29166cf2e5af9607a6edf61b" title="Delete a child of this node.">removeChild</a>(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* removeThis);</div>
<div class="line"><a name="l00567"></a><span class="lineno">  567</span>&#160;</div>
<div class="line"><a name="l00569"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a6d51386d02aa54cb86388c75a37c6b0f">  569</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a6d51386d02aa54cb86388c75a37c6b0f" title="Navigate to a sibling node.">previousSibling</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_prev; }</div>
<div class="line"><a name="l00570"></a><span class="lineno">  570</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a6d51386d02aa54cb86388c75a37c6b0f" title="Navigate to a sibling node.">previousSibling</a>() { <span class="keywordflow">return</span> m_prev; }</div>
<div class="line"><a name="l00571"></a><span class="lineno">  571</span>&#160;</div>
<div class="line"><a name="l00573"></a><span class="lineno">  573</span>&#160;    <span class="keyword">const</span> XmlNode* <a class="code" href="classduye_1_1_xml_node.html#a6d51386d02aa54cb86388c75a37c6b0f" title="Navigate to a sibling node.">previousSibling</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* prev) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00574"></a><span class="lineno">  574</span>&#160;    XmlNode* <a class="code" href="classduye_1_1_xml_node.html#a6d51386d02aa54cb86388c75a37c6b0f" title="Navigate to a sibling node.">previousSibling</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* prev) {</div>
<div class="line"><a name="l00575"></a><span class="lineno">  575</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span>XmlNode*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span>XmlNode*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;previousSibling(prev));</div>
<div class="line"><a name="l00576"></a><span class="lineno">  576</span>&#160;    }</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;</div>
<div class="line"><a name="l00578"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a5baad7fb5771beddee5b70024d537c59">  578</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a5baad7fb5771beddee5b70024d537c59" title="STL std::string form.">previousSibling</a>(<span class="keyword">const</span> std::string&amp; value)<span class="keyword"> const </span>{   </div>
<div class="line"><a name="l00579"></a><span class="lineno">  579</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#a6d51386d02aa54cb86388c75a37c6b0f" title="Navigate to a sibling node.">previousSibling</a>(value.c_str());   </div>
<div class="line"><a name="l00580"></a><span class="lineno">  580</span>&#160;    }   </div>
<div class="line"><a name="l00581"></a><span class="lineno">  581</span>&#160;    </div>
<div class="line"><a name="l00582"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a4c72238269e3938cf34243ad9764cbce">  582</a></span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a4c72238269e3938cf34243ad9764cbce" title="STL std::string form.">previousSibling</a>(<span class="keyword">const</span> std::string&amp; value) {   </div>
<div class="line"><a name="l00583"></a><span class="lineno">  583</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#a6d51386d02aa54cb86388c75a37c6b0f" title="Navigate to a sibling node.">previousSibling</a>(value.c_str()); </div>
<div class="line"><a name="l00584"></a><span class="lineno">  584</span>&#160;    }   </div>
<div class="line"><a name="l00585"></a><span class="lineno">  585</span>&#160;    </div>
<div class="line"><a name="l00586"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#ae00a4a92a552e08b02f274aacd3b111a">  586</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#ae00a4a92a552e08b02f274aacd3b111a" title="STL std::string form.">nextSibling</a>(<span class="keyword">const</span> std::string&amp; value)<span class="keyword"> const </span>{   </div>
<div class="line"><a name="l00587"></a><span class="lineno">  587</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#a038a8c4e4b966341f74df457c73c35fb" title="Navigate to a sibling node.">nextSibling</a>(value.c_str());   </div>
<div class="line"><a name="l00588"></a><span class="lineno">  588</span>&#160;    }   </div>
<div class="line"><a name="l00589"></a><span class="lineno">  589</span>&#160;    </div>
<div class="line"><a name="l00590"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a60608664d29f20d5505d842b757827f5">  590</a></span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a60608664d29f20d5505d842b757827f5" title="STL std::string form.">nextSibling</a>(<span class="keyword">const</span> std::string&amp; value) {   </div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#a038a8c4e4b966341f74df457c73c35fb" title="Navigate to a sibling node.">nextSibling</a>(value.c_str());   </div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;    }   </div>
<div class="line"><a name="l00593"></a><span class="lineno">  593</span>&#160;</div>
<div class="line"><a name="l00595"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a038a8c4e4b966341f74df457c73c35fb">  595</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a038a8c4e4b966341f74df457c73c35fb" title="Navigate to a sibling node.">nextSibling</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_next; }</div>
<div class="line"><a name="l00596"></a><span class="lineno">  596</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a038a8c4e4b966341f74df457c73c35fb" title="Navigate to a sibling node.">nextSibling</a>() { <span class="keywordflow">return</span> m_next; }</div>
<div class="line"><a name="l00597"></a><span class="lineno">  597</span>&#160;</div>
<div class="line"><a name="l00599"></a><span class="lineno">  599</span>&#160;    <span class="keyword">const</span> XmlNode* <a class="code" href="classduye_1_1_xml_node.html#a038a8c4e4b966341f74df457c73c35fb" title="Navigate to a sibling node.">nextSibling</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* next) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00600"></a><span class="lineno">  600</span>&#160;    XmlNode* <a class="code" href="classduye_1_1_xml_node.html#a038a8c4e4b966341f74df457c73c35fb" title="Navigate to a sibling node.">nextSibling</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* next) {</div>
<div class="line"><a name="l00601"></a><span class="lineno">  601</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span>XmlNode*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span>XmlNode*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;nextSibling(next));</div>
<div class="line"><a name="l00602"></a><span class="lineno">  602</span>&#160;    }</div>
<div class="line"><a name="l00603"></a><span class="lineno">  603</span>&#160;</div>
<div class="line"><a name="l00609"></a><span class="lineno">  609</span>&#160;    <span class="keyword">const</span> XmlElement* <a class="code" href="classduye_1_1_xml_node.html#a1d1a52b0da581e54df634cae529ca10b" title="Convenience function to get through elements. Calls NextSibling and ToElement. Will skip all non-Elem...">nextSiblingElement</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00610"></a><span class="lineno">  610</span>&#160;    XmlElement* <a class="code" href="classduye_1_1_xml_node.html#a1d1a52b0da581e54df634cae529ca10b" title="Convenience function to get through elements. Calls NextSibling and ToElement. Will skip all non-Elem...">nextSiblingElement</a>() {</div>
<div class="line"><a name="l00611"></a><span class="lineno">  611</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span>XmlElement*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span>XmlNode*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;nextSiblingElement());</div>
<div class="line"><a name="l00612"></a><span class="lineno">  612</span>&#160;    }</div>
<div class="line"><a name="l00613"></a><span class="lineno">  613</span>&#160;</div>
<div class="line"><a name="l00619"></a><span class="lineno">  619</span>&#160;    <span class="keyword">const</span> XmlElement* <a class="code" href="classduye_1_1_xml_node.html#a1d1a52b0da581e54df634cae529ca10b" title="Convenience function to get through elements. Calls NextSibling and ToElement. Will skip all non-Elem...">nextSiblingElement</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* next) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00620"></a><span class="lineno">  620</span>&#160;    XmlElement* <a class="code" href="classduye_1_1_xml_node.html#a1d1a52b0da581e54df634cae529ca10b" title="Convenience function to get through elements. Calls NextSibling and ToElement. Will skip all non-Elem...">nextSiblingElement</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* next) {</div>
<div class="line"><a name="l00621"></a><span class="lineno">  621</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span>XmlElement*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span>XmlNode*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;nextSiblingElement(next));</div>
<div class="line"><a name="l00622"></a><span class="lineno">  622</span>&#160;    }</div>
<div class="line"><a name="l00623"></a><span class="lineno">  623</span>&#160;</div>
<div class="line"><a name="l00624"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a8cd600f0eec9cfd146a2f2dd85651f55">  624</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_node.html#a8cd600f0eec9cfd146a2f2dd85651f55" title="STL std::string form.">nextSiblingElement</a>( <span class="keyword">const</span> std::string&amp; value)<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l00625"></a><span class="lineno">  625</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#a1d1a52b0da581e54df634cae529ca10b" title="Convenience function to get through elements. Calls NextSibling and ToElement. Will skip all non-Elem...">nextSiblingElement</a>(value.c_str());   </div>
<div class="line"><a name="l00626"></a><span class="lineno">  626</span>&#160;    }   </div>
<div class="line"><a name="l00627"></a><span class="lineno">  627</span>&#160;    </div>
<div class="line"><a name="l00628"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a6fd6bda792944de4479c335aebed0067">  628</a></span>&#160;    <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_node.html#a6fd6bda792944de4479c335aebed0067" title="STL std::string form.">nextSiblingElement</a>(<span class="keyword">const</span> std::string&amp; value) {   </div>
<div class="line"><a name="l00629"></a><span class="lineno">  629</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#a1d1a52b0da581e54df634cae529ca10b" title="Convenience function to get through elements. Calls NextSibling and ToElement. Will skip all non-Elem...">nextSiblingElement</a>(value.c_str());    </div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;    }   </div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;</div>
<div class="line"><a name="l00633"></a><span class="lineno">  633</span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_node.html#ab5c9a40066cadeabd618f748cfa6b87f" title="Convenience function to get through elements.">firstChildElement</a>()   <span class="keyword">const</span>;</div>
<div class="line"><a name="l00634"></a><span class="lineno">  634</span>&#160;    <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_node.html#ab5c9a40066cadeabd618f748cfa6b87f" title="Convenience function to get through elements.">firstChildElement</a>() {</div>
<div class="line"><a name="l00635"></a><span class="lineno">  635</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span><a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span><a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;firstChildElement());</div>
<div class="line"><a name="l00636"></a><span class="lineno">  636</span>&#160;    }</div>
<div class="line"><a name="l00637"></a><span class="lineno">  637</span>&#160;</div>
<div class="line"><a name="l00639"></a><span class="lineno">  639</span>&#160;    <span class="keyword">const</span> XmlElement* <a class="code" href="classduye_1_1_xml_node.html#ab5c9a40066cadeabd618f748cfa6b87f" title="Convenience function to get through elements.">firstChildElement</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00640"></a><span class="lineno">  640</span>&#160;    XmlElement* <a class="code" href="classduye_1_1_xml_node.html#ab5c9a40066cadeabd618f748cfa6b87f" title="Convenience function to get through elements.">firstChildElement</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value) {</div>
<div class="line"><a name="l00641"></a><span class="lineno">  641</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span>XmlElement*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span>XmlNode*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;firstChildElement(value));</div>
<div class="line"><a name="l00642"></a><span class="lineno">  642</span>&#160;    }</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;</div>
<div class="line"><a name="l00644"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#ac0c5a160496d2ced380fa26a34e80df7">  644</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_node.html#ac0c5a160496d2ced380fa26a34e80df7" title="STL std::string form.">firstChildElement</a>(<span class="keyword">const</span> std::string&amp; value)<span class="keyword"> const </span>{   </div>
<div class="line"><a name="l00645"></a><span class="lineno">  645</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#ab5c9a40066cadeabd618f748cfa6b87f" title="Convenience function to get through elements.">firstChildElement</a>(value.c_str()); </div>
<div class="line"><a name="l00646"></a><span class="lineno">  646</span>&#160;    }   </div>
<div class="line"><a name="l00647"></a><span class="lineno">  647</span>&#160;    </div>
<div class="line"><a name="l00648"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#ac6da6fe4b7b2186383843fd9cdfc94d1">  648</a></span>&#160;    <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_node.html#ac6da6fe4b7b2186383843fd9cdfc94d1" title="STL std::string form.">firstChildElement</a>(<span class="keyword">const</span> std::string&amp; value) {   </div>
<div class="line"><a name="l00649"></a><span class="lineno">  649</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#ab5c9a40066cadeabd618f748cfa6b87f" title="Convenience function to get through elements.">firstChildElement</a>(value.c_str()); </div>
<div class="line"><a name="l00650"></a><span class="lineno">  650</span>&#160;    }   </div>
<div class="line"><a name="l00651"></a><span class="lineno">  651</span>&#160;</div>
<div class="line"><a name="l00657"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#aeb18c5fb04532bdad060b0d556b1b22e">  657</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_node.html#aeb18c5fb04532bdad060b0d556b1b22e" title="Query the type (as an enumerated value, above) of this node. The possible types are: NYXML_DOCUMENT...">type</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_type; }</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;</div>
<div class="line"><a name="l00663"></a><span class="lineno">  663</span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>* <a class="code" href="classduye_1_1_xml_node.html#a3d19b65924e36f58cc738109a48b4801" title="Return a pointer to the Document this node lives in. Returns null if not in a document.">getDocument</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00664"></a><span class="lineno">  664</span>&#160;    <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>* <a class="code" href="classduye_1_1_xml_node.html#a3d19b65924e36f58cc738109a48b4801" title="Return a pointer to the Document this node lives in. Returns null if not in a document.">getDocument</a>() {</div>
<div class="line"><a name="l00665"></a><span class="lineno">  665</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span><a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span><a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;getDocument());</div>
<div class="line"><a name="l00666"></a><span class="lineno">  666</span>&#160;    }</div>
<div class="line"><a name="l00667"></a><span class="lineno">  667</span>&#160;</div>
<div class="line"><a name="l00669"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a10153610e12f360c492d6d4e2e0060ab">  669</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_node.html#a10153610e12f360c492d6d4e2e0060ab" title="Returns true if this node has no children.">noChildren</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> !m_firstChild; }</div>
<div class="line"><a name="l00670"></a><span class="lineno">  670</span>&#160;</div>
<div class="line"><a name="l00671"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a351b862789c964027ae4501c20c3d0ee">  671</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>* <a class="code" href="classduye_1_1_xml_node.html#a351b862789c964027ae4501c20c3d0ee" title="Cast to a more defined type. Will return null if not of the requested type.">toDocument</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0; } </div>
<div class="line"><a name="l00672"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#ad7c8f1487e11257b0e121b0d29d5f479">  672</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_node.html#ad7c8f1487e11257b0e121b0d29d5f479" title="Cast to a more defined type. Will return null if not of the requested type.">toElement</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0; } </div>
<div class="line"><a name="l00673"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a207950685bc2ee28aaa245a59150df81">  673</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_comment.html" title="An XML comment.">XmlComment</a>* <a class="code" href="classduye_1_1_xml_node.html#a207950685bc2ee28aaa245a59150df81" title="Cast to a more defined type. Will return null if not of the requested type.">toComment</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0; } </div>
<div class="line"><a name="l00674"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a19e3ea30dacb192a913f4ddbb59c633b">  674</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>* <a class="code" href="classduye_1_1_xml_node.html#a19e3ea30dacb192a913f4ddbb59c633b" title="Cast to a more defined type. Will return null if not of the requested type.">toUnknown</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0; } </div>
<div class="line"><a name="l00675"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a2cea4f5e12dd637bd97ba66280f94cea">  675</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().">XmlText</a>* <a class="code" href="classduye_1_1_xml_node.html#a2cea4f5e12dd637bd97ba66280f94cea" title="Cast to a more defined type. Will return null if not of the requested type.">toText</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0; } </div>
<div class="line"><a name="l00676"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a498986c606dc0984690d97a2df4755b4">  676</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file.">XmlDeclaration</a>* <a class="code" href="classduye_1_1_xml_node.html#a498986c606dc0984690d97a2df4755b4" title="Cast to a more defined type. Will return null if not of the requested type.">toDeclaration</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> 0; } </div>
<div class="line"><a name="l00677"></a><span class="lineno">  677</span>&#160;</div>
<div class="line"><a name="l00678"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#aaa3c9910ed7673eeed9aeb3bd8115cc9">  678</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>* <a class="code" href="classduye_1_1_xml_node.html#aaa3c9910ed7673eeed9aeb3bd8115cc9" title="Cast to a more defined type. Will return null if not of the requested type.">toDocument</a>() { <span class="keywordflow">return</span> 0; } </div>
<div class="line"><a name="l00679"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a1518563cd13462553debe43e7da7ef6f">  679</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_node.html#a1518563cd13462553debe43e7da7ef6f" title="Cast to a more defined type. Will return null if not of the requested type.">toElement</a>() { <span class="keywordflow">return</span> 0; } </div>
<div class="line"><a name="l00680"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a7e42383bc56d26615a2d7a20ab0da98e">  680</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_comment.html" title="An XML comment.">XmlComment</a>* <a class="code" href="classduye_1_1_xml_node.html#a7e42383bc56d26615a2d7a20ab0da98e" title="Cast to a more defined type. Will return null if not of the requested type.">toComment</a>() { <span class="keywordflow">return</span> 0; } </div>
<div class="line"><a name="l00681"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#ab90860bef4ce44b58ae62776a0bb58e4">  681</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>* <a class="code" href="classduye_1_1_xml_node.html#ab90860bef4ce44b58ae62776a0bb58e4" title="Cast to a more defined type. Will return null if not of the requested type.">toUnknown</a>() { <span class="keywordflow">return</span> 0; } </div>
<div class="line"><a name="l00682"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#aee4cdf100c45326bcab0767d106efa7f">  682</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().">XmlText</a>* <a class="code" href="classduye_1_1_xml_node.html#aee4cdf100c45326bcab0767d106efa7f" title="Cast to a more defined type. Will return null if not of the requested type.">toText</a>() { <span class="keywordflow">return</span> 0; } </div>
<div class="line"><a name="l00683"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_node.html#a278394b327cc6a7f6e80f3c4759dd575">  683</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file.">XmlDeclaration</a>* <a class="code" href="classduye_1_1_xml_node.html#a278394b327cc6a7f6e80f3c4759dd575" title="Cast to a more defined type. Will return null if not of the requested type.">toDeclaration</a>() { <span class="keywordflow">return</span> 0; } </div>
<div class="line"><a name="l00684"></a><span class="lineno">  684</span>&#160;</div>
<div class="line"><a name="l00689"></a><span class="lineno">  689</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_node.html#a7b830664f747b5a758c49d4d14ecc787" title="Create an exact duplicate of this node and return it. The memory must be deleted by the caller...">clone</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00690"></a><span class="lineno">  690</span>&#160;</div>
<div class="line"><a name="l00714"></a><span class="lineno">  714</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_node.html#adcd11cb01e35ea4f9e11c3e451a132f3" title="Accept a hierchical visit the nodes in the GnyXML DOM. Every node in the XML tree will be conditional...">accept</a>(<a class="code" href="classduye_1_1_xml_visitor.html" title="Implements the interface to the &quot;Visitor pattern&quot; (see the Accept() method.) If you call the Accept()...">XmlVisitor</a>* visitor) <span class="keyword">const</span> = 0;</div>
<div class="line"><a name="l00715"></a><span class="lineno">  715</span>&#160;</div>
<div class="line"><a name="l00716"></a><span class="lineno">  716</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00717"></a><span class="lineno">  717</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>(<a class="code" href="classduye_1_1_xml_node.html#ae4027c9a45dd41b1672ce04e9b141947" title="The types of XML nodes supported by GnyXml. (All the unsupported types are picked up by UNKNOWN...">NodeType</a> <a class="code" href="classduye_1_1_xml_node.html#aeb18c5fb04532bdad060b0d556b1b22e" title="Query the type (as an enumerated value, above) of this node. The possible types are: NYXML_DOCUMENT...">type</a>);</div>
<div class="line"><a name="l00718"></a><span class="lineno">  718</span>&#160;</div>
<div class="line"><a name="l00719"></a><span class="lineno">  719</span>&#160;    <span class="comment">// Copy to the allocated object. Shared functionality between Clone, Copy constructor,</span></div>
<div class="line"><a name="l00720"></a><span class="lineno">  720</span>&#160;    <span class="comment">// and the assignment operator.</span></div>
<div class="line"><a name="l00721"></a><span class="lineno">  721</span>&#160;    <span class="keywordtype">void</span> copyTo(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* target) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00722"></a><span class="lineno">  722</span>&#160;</div>
<div class="line"><a name="l00723"></a><span class="lineno">  723</span>&#160;    <span class="comment">// The real work of the input operator.</span></div>
<div class="line"><a name="l00724"></a><span class="lineno">  724</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> streamIn(std::istream* in, std::string* tag) = 0;</div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;</div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;    <span class="comment">// Figure out what is at *p, and parse it. Returns null if it is not an xml node.</span></div>
<div class="line"><a name="l00727"></a><span class="lineno">  727</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* identify(<span class="keyword">const</span> <span class="keywordtype">char</span>* start, XmlEncoding encoding);</div>
<div class="line"><a name="l00728"></a><span class="lineno">  728</span>&#160;</div>
<div class="line"><a name="l00729"></a><span class="lineno">  729</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*    m_parent;</div>
<div class="line"><a name="l00730"></a><span class="lineno">  730</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html#ae4027c9a45dd41b1672ce04e9b141947" title="The types of XML nodes supported by GnyXml. (All the unsupported types are picked up by UNKNOWN...">NodeType</a>    m_type;</div>
<div class="line"><a name="l00731"></a><span class="lineno">  731</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*    m_firstChild;</div>
<div class="line"><a name="l00732"></a><span class="lineno">  732</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*    m_lastChild;</div>
<div class="line"><a name="l00733"></a><span class="lineno">  733</span>&#160;    std::string      m_value;</div>
<div class="line"><a name="l00734"></a><span class="lineno">  734</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*    m_prev;</div>
<div class="line"><a name="l00735"></a><span class="lineno">  735</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>*    m_next;</div>
<div class="line"><a name="l00736"></a><span class="lineno">  736</span>&#160;</div>
<div class="line"><a name="l00737"></a><span class="lineno">  737</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>&amp;);                <span class="comment">// not implemented.</span></div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;    <span class="keywordtype">void</span> operator = (<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>&amp; base);  <span class="comment">// not allowed.</span></div>
<div class="line"><a name="l00740"></a><span class="lineno">  740</span>&#160;};</div>
<div class="line"><a name="l00741"></a><span class="lineno">  741</span>&#160;</div>
<div class="line"><a name="l00750"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute.html">  750</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a> : <span class="keyword">public</span> <a class="code" href="classduye_1_1_xml_base.html" title="XmlBase is a base class for every class in GnyXml. It does little except to establish that GnyXml cla...">XmlBase</a> {</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classduye_1_1_xml_attribute_set.html" title="A class used to manage a group of attributes. It is only used internally, both by the ELEMENT and the...">XmlAttributeSet</a>;</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;</div>
<div class="line"><a name="l00753"></a><span class="lineno">  753</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00755"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40">  755</a></span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>() : <a class="code" href="classduye_1_1_xml_base.html" title="XmlBase is a base class for every class in GnyXml. It does little except to establish that GnyXml cla...">XmlBase</a>() {</div>
<div class="line"><a name="l00756"></a><span class="lineno">  756</span>&#160;        m_document = NULL;</div>
<div class="line"><a name="l00757"></a><span class="lineno">  757</span>&#160;        m_prev = NULL;</div>
<div class="line"><a name="l00758"></a><span class="lineno">  758</span>&#160;        m_next = NULL;</div>
<div class="line"><a name="l00759"></a><span class="lineno">  759</span>&#160;    }</div>
<div class="line"><a name="l00760"></a><span class="lineno">  760</span>&#160;</div>
<div class="line"><a name="l00762"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute.html#a827e3964407c01db26704353292fbb47">  762</a></span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html#a827e3964407c01db26704353292fbb47" title="std::string constructor.">XmlAttribute</a>(<span class="keyword">const</span> std::string&amp; <a class="code" href="classduye_1_1_xml_attribute.html#ad6e55bfbedc8b2873b64234487e4a7f0" title="Return the name of this attribute.">name</a>, <span class="keyword">const</span> std::string&amp; value) {</div>
<div class="line"><a name="l00763"></a><span class="lineno">  763</span>&#160;        m_name = <a class="code" href="classduye_1_1_xml_attribute.html#ad6e55bfbedc8b2873b64234487e4a7f0" title="Return the name of this attribute.">name</a>;</div>
<div class="line"><a name="l00764"></a><span class="lineno">  764</span>&#160;        m_value = <a class="code" href="classduye_1_1_xml_attribute.html#aabc7f194b334216373680bb4f9509f01" title="Return the value of this attribute.">value</a>;</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;        m_document = NULL;</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;        m_prev = m_next = NULL;</div>
<div class="line"><a name="l00767"></a><span class="lineno">  767</span>&#160;    }</div>
<div class="line"><a name="l00768"></a><span class="lineno">  768</span>&#160;</div>
<div class="line"><a name="l00770"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute.html#a19e6085dd37e85422f6c8f0de44f77dd">  770</a></span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html#a19e6085dd37e85422f6c8f0de44f77dd" title="Construct an attribute with a name and value.">XmlAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_attribute.html#ad6e55bfbedc8b2873b64234487e4a7f0" title="Return the name of this attribute.">name</a>, <span class="keyword">const</span> <span class="keywordtype">char</span>* value) {</div>
<div class="line"><a name="l00771"></a><span class="lineno">  771</span>&#160;        m_name = <a class="code" href="classduye_1_1_xml_attribute.html#ad6e55bfbedc8b2873b64234487e4a7f0" title="Return the name of this attribute.">name</a>;</div>
<div class="line"><a name="l00772"></a><span class="lineno">  772</span>&#160;        m_value = <a class="code" href="classduye_1_1_xml_attribute.html#aabc7f194b334216373680bb4f9509f01" title="Return the value of this attribute.">value</a>;</div>
<div class="line"><a name="l00773"></a><span class="lineno">  773</span>&#160;        m_document = NULL;</div>
<div class="line"><a name="l00774"></a><span class="lineno">  774</span>&#160;        m_prev = NULL;</div>
<div class="line"><a name="l00775"></a><span class="lineno">  775</span>&#160;        m_next = NULL;</div>
<div class="line"><a name="l00776"></a><span class="lineno">  776</span>&#160;    }</div>
<div class="line"><a name="l00777"></a><span class="lineno">  777</span>&#160;</div>
<div class="line"><a name="l00778"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute.html#ad6e55bfbedc8b2873b64234487e4a7f0">  778</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_attribute.html#ad6e55bfbedc8b2873b64234487e4a7f0" title="Return the name of this attribute.">name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_name.c_str(); }    </div>
<div class="line"><a name="l00779"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute.html#aabc7f194b334216373680bb4f9509f01">  779</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_attribute.html#aabc7f194b334216373680bb4f9509f01" title="Return the value of this attribute.">value</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_value.c_str(); }    </div>
<div class="line"><a name="l00780"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute.html#a5f886316ad3cf473612bb968e41d7dcb">  780</a></span>&#160;    <span class="keyword">const</span> std::string&amp; <a class="code" href="classduye_1_1_xml_attribute.html#a5f886316ad3cf473612bb968e41d7dcb" title="Return the value of this attribute.">valueStr</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_value; }   </div>
<div class="line"><a name="l00781"></a><span class="lineno">  781</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_attribute.html#ab13136fe75ad796dc1938c8c272a71fd" title="Return the value of this attribute, converted to an integer.">intValue</a>() <span class="keyword">const</span>;    </div>
<div class="line"><a name="l00782"></a><span class="lineno">  782</span>&#160;    <span class="keywordtype">double</span> <a class="code" href="classduye_1_1_xml_attribute.html#a131a0c2265be6cf3248c1862d449cbf4" title="Return the value of this attribute, converted to a double.">doubleValue</a>() <span class="keyword">const</span>;    </div>
<div class="line"><a name="l00783"></a><span class="lineno">  783</span>&#160;</div>
<div class="line"><a name="l00784"></a><span class="lineno">  784</span>&#160;    <span class="comment">// Get the tinyxml string representation</span></div>
<div class="line"><a name="l00785"></a><span class="lineno">  785</span>&#160;    <span class="keyword">const</span> std::string&amp; nameTStr()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_name; }</div>
<div class="line"><a name="l00786"></a><span class="lineno">  786</span>&#160;</div>
<div class="line"><a name="l00797"></a><span class="lineno">  797</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_attribute.html#af8dd3516e3902d8123dbdbc07dc24a4c" title="QueryIntValue examines the value string. It is an alternative to the IntValue() method with richer er...">queryIntValue</a>(<span class="keywordtype">int</span>* value) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00799"></a><span class="lineno">  799</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_attribute.html#a024755920731632bf16340cccaeddb5f" title="QueryDoubleValue examines the value string. See QueryIntValue().">queryDoubleValue</a>(<span class="keywordtype">double</span>* value) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00800"></a><span class="lineno">  800</span>&#160;</div>
<div class="line"><a name="l00802"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute.html#a5f9f227d40aa8564fd1650ecf488ae15">  802</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_attribute.html#a5f9f227d40aa8564fd1650ecf488ae15" title="Set the value.">setName</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_attribute.html#ad6e55bfbedc8b2873b64234487e4a7f0" title="Return the name of this attribute.">name</a>) { m_name = <a class="code" href="classduye_1_1_xml_attribute.html#ad6e55bfbedc8b2873b64234487e4a7f0" title="Return the name of this attribute.">name</a>; }   </div>
<div class="line"><a name="l00804"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute.html#ad6c152c98909294266b9ec2cc04a4ab6">  804</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_attribute.html#ad6c152c98909294266b9ec2cc04a4ab6" title="Set the value from an integer.">setValue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value) { m_value = <a class="code" href="classduye_1_1_xml_attribute.html#aabc7f194b334216373680bb4f9509f01" title="Return the value of this attribute.">value</a>; }</div>
<div class="line"><a name="l00805"></a><span class="lineno">  805</span>&#160;    </div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_attribute.html#a955d4d213842a47b11def26478b6581b" title="Set the value from a double.">setIntValue</a>(<span class="keywordtype">int</span> value);</div>
<div class="line"><a name="l00809"></a><span class="lineno">  809</span>&#160;    <span class="keywordtype">void</span> setDoubleValue(<span class="keywordtype">double</span> value);</div>
<div class="line"><a name="l00810"></a><span class="lineno">  810</span>&#160;</div>
<div class="line"><a name="l00812"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute.html#a5b946b50f95cfe94dbbd8c52f068c8a6">  812</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_attribute.html#a5b946b50f95cfe94dbbd8c52f068c8a6" title="STL std::string form.">setName</a>(<span class="keyword">const</span> std::string&amp; <a class="code" href="classduye_1_1_xml_attribute.html#ad6e55bfbedc8b2873b64234487e4a7f0" title="Return the name of this attribute.">name</a>) { m_name = <a class="code" href="classduye_1_1_xml_attribute.html#ad6e55bfbedc8b2873b64234487e4a7f0" title="Return the name of this attribute.">name</a>; }    </div>
<div class="line"><a name="l00814"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute.html#ab06e2af946a87980575b48ab0bf4b991">  814</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_attribute.html#ab06e2af946a87980575b48ab0bf4b991" title="STL std::string form.">setValue</a>(<span class="keyword">const</span> std::string&amp; value) { m_value = <a class="code" href="classduye_1_1_xml_attribute.html#aabc7f194b334216373680bb4f9509f01" title="Return the value of this attribute.">value</a>; }</div>
<div class="line"><a name="l00815"></a><span class="lineno">  815</span>&#160;</div>
<div class="line"><a name="l00817"></a><span class="lineno">  817</span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* <a class="code" href="classduye_1_1_xml_attribute.html#ac83983c2ce9deabc14acadd3adbf7c83" title="Get the next sibling attribute in the DOM. Returns null at end.">next</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00818"></a><span class="lineno">  818</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* <a class="code" href="classduye_1_1_xml_attribute.html#ac83983c2ce9deabc14acadd3adbf7c83" title="Get the next sibling attribute in the DOM. Returns null at end.">next</a>() {</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span><a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span><a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;next()); </div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;    }</div>
<div class="line"><a name="l00821"></a><span class="lineno">  821</span>&#160;</div>
<div class="line"><a name="l00823"></a><span class="lineno">  823</span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>* <a class="code" href="classduye_1_1_xml_attribute.html#ad77cdb559dbd699030423e730141c81e" title="Get the previous sibling attribute in the DOM. Returns null at beginning.">previous</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l00824"></a><span class="lineno">  824</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>* <a class="code" href="classduye_1_1_xml_attribute.html#ad77cdb559dbd699030423e730141c81e" title="Get the previous sibling attribute in the DOM. Returns null at beginning.">previous</a>() {</div>
<div class="line"><a name="l00825"></a><span class="lineno">  825</span>&#160;        <span class="keywordflow">return</span> <span class="keyword">const_cast&lt;</span><a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>*<span class="keyword">&gt;</span>((<span class="keyword">const_cast&lt;</span><span class="keyword">const </span><a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>*<span class="keyword">&gt;</span>(<span class="keyword">this</span>))-&gt;previous()); </div>
<div class="line"><a name="l00826"></a><span class="lineno">  826</span>&#160;    }</div>
<div class="line"><a name="l00827"></a><span class="lineno">  827</span>&#160;</div>
<div class="line"><a name="l00828"></a><span class="lineno">  828</span>&#160;    <span class="keywordtype">bool</span> operator == (<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>&amp; rhs)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> rhs.m_name == m_name; }</div>
<div class="line"><a name="l00829"></a><span class="lineno">  829</span>&#160;    <span class="keywordtype">bool</span> operator &lt; (<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>&amp; rhs)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_name &lt; rhs.m_name; }</div>
<div class="line"><a name="l00830"></a><span class="lineno">  830</span>&#160;    <span class="keywordtype">bool</span> operator &gt; (<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>&amp; rhs)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_name &gt; rhs.m_name; }</div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;</div>
<div class="line"><a name="l00836"></a><span class="lineno">  836</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_attribute.html#a2c4cf719a7d4529d46d84fa1cf44a8cb" title="Attribute parsing starts: first letter of the name returns: the next char after the value end quote...">parse</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* p, XmlParsingData* data, XmlEncoding encoding);</div>
<div class="line"><a name="l00837"></a><span class="lineno">  837</span>&#160;</div>
<div class="line"><a name="l00838"></a><span class="lineno">  838</span>&#160;    <span class="comment">// Prints this Attribute to a FILE stream.</span></div>
<div class="line"><a name="l00839"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute.html#a76fde61930196859780ba4e63c4f57ef">  839</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_attribute.html#a76fde61930196859780ba4e63c4f57ef" title="All GnyXml classes can print themselves to a filestream or the string class (GXmlString in non-STL mo...">print</a>(FILE* cfile, <span class="keywordtype">int</span> depth)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00840"></a><span class="lineno">  840</span>&#160;        <a class="code" href="classduye_1_1_xml_attribute.html#a76fde61930196859780ba4e63c4f57ef" title="All GnyXml classes can print themselves to a filestream or the string class (GXmlString in non-STL mo...">print</a>(cfile, depth, 0);</div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;    }</div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;    </div>
<div class="line"><a name="l00843"></a><span class="lineno">  843</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_attribute.html#a76fde61930196859780ba4e63c4f57ef" title="All GnyXml classes can print themselves to a filestream or the string class (GXmlString in non-STL mo...">print</a>(FILE* cfile, <span class="keywordtype">int</span> depth, std::string* str) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00844"></a><span class="lineno">  844</span>&#160;    <span class="keywordtype">void</span> xmlToStr(std::string&amp; outXml, <span class="keywordtype">int</span> depth) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00845"></a><span class="lineno">  845</span>&#160;    </div>
<div class="line"><a name="l00846"></a><span class="lineno">  846</span>&#160;    <span class="comment">// [internal use]</span></div>
<div class="line"><a name="l00847"></a><span class="lineno">  847</span>&#160;    <span class="comment">// Set the document pointer so the attribute can report errors.</span></div>
<div class="line"><a name="l00848"></a><span class="lineno">  848</span>&#160;    <span class="keywordtype">void</span> setDocument(<a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>* doc)  { m_document = doc; }</div>
<div class="line"><a name="l00849"></a><span class="lineno">  849</span>&#160;</div>
<div class="line"><a name="l00850"></a><span class="lineno">  850</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;    <span class="comment">// not implemented.</span></div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>&amp;);      </div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;    <span class="comment">// not allowed.</span></div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;    <span class="keywordtype">void</span> operator = (<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>&amp; base); </div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;</div>
<div class="line"><a name="l00856"></a><span class="lineno">  856</span>&#160;    <span class="comment">// A pointer back to a document, for error reporting.</span></div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;    XmlDocument*    m_document; </div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;    std::string     m_name;</div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;    std::string     m_value;</div>
<div class="line"><a name="l00860"></a><span class="lineno">  860</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>*   m_prev;</div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html#a645b2a8f68050fe5f35ed394f9fe4c40" title="Construct an empty attribute.">XmlAttribute</a>*   m_next;</div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;};</div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;</div>
<div class="line"><a name="l00877"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_attribute_set.html">  877</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_attribute_set.html" title="A class used to manage a group of attributes. It is only used internally, both by the ELEMENT and the...">XmlAttributeSet</a> {</div>
<div class="line"><a name="l00878"></a><span class="lineno">  878</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute_set.html" title="A class used to manage a group of attributes. It is only used internally, both by the ELEMENT and the...">XmlAttributeSet</a>();</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;    ~<a class="code" href="classduye_1_1_xml_attribute_set.html" title="A class used to manage a group of attributes. It is only used internally, both by the ELEMENT and the...">XmlAttributeSet</a>();</div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;</div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;    <span class="keywordtype">void</span> add(<a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* attribute);</div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;    <span class="keywordtype">void</span> <span class="keyword">remove</span>(<a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* attribute);</div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;</div>
<div class="line"><a name="l00885"></a><span class="lineno">  885</span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* first()<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;        <span class="keywordflow">return</span> (m_sentinel.m_next == &amp;m_sentinel) ? 0 : m_sentinel.m_next; </div>
<div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160;    }</div>
<div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160;    </div>
<div class="line"><a name="l00889"></a><span class="lineno">  889</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* first() { </div>
<div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;        <span class="keywordflow">return</span> (m_sentinel.m_next == &amp;m_sentinel) ? 0 : m_sentinel.m_next; </div>
<div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;    }</div>
<div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;    </div>
<div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* last()<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;        <span class="keywordflow">return</span> (m_sentinel.m_prev == &amp;m_sentinel) ? 0 : m_sentinel.m_prev; </div>
<div class="line"><a name="l00895"></a><span class="lineno">  895</span>&#160;    }</div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;    </div>
<div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* last() { </div>
<div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;        <span class="keywordflow">return</span> (m_sentinel.m_prev == &amp;m_sentinel) ? 0 : m_sentinel.m_prev; </div>
<div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;    }</div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* find(<span class="keyword">const</span> <span class="keywordtype">char</span>* name) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00902"></a><span class="lineno">  902</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* findOrCreate(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;</div>
<div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* find(<span class="keyword">const</span> std::string&amp; name) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* findOrCreate(<span class="keyword">const</span> std::string&amp; name);</div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;</div>
<div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;    <span class="comment">//*ME:Because of hidden/disabled copy-construktor in GXmlAttribute (sentinel-element),</span></div>
<div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;    <span class="comment">//*ME:  this class must be also use a hidden/disabled copy-constructor !!!</span></div>
<div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute_set.html" title="A class used to manage a group of attributes. It is only used internally, both by the ELEMENT and the...">XmlAttributeSet</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute_set.html" title="A class used to manage a group of attributes. It is only used internally, both by the ELEMENT and the...">XmlAttributeSet</a>&amp;);    <span class="comment">// not allowed</span></div>
<div class="line"><a name="l00911"></a><span class="lineno">  911</span>&#160;    <span class="keywordtype">void</span> operator = (<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute_set.html" title="A class used to manage a group of attributes. It is only used internally, both by the ELEMENT and the...">XmlAttributeSet</a>&amp;);   <span class="comment">// not allowed (as GXmlAttribute)</span></div>
<div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;</div>
<div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a> m_sentinel;</div>
<div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;};</div>
<div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;</div>
<div class="line"><a name="l00921"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_element.html">  921</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a> : <span class="keyword">public</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a> {</div>
<div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;    <a class="code" href="classduye_1_1_xml_element.html#adf1617815e82da7e2601d5ff7c736012" title="Construct an element.">XmlElement</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div>
<div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;</div>
<div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;    <a class="code" href="classduye_1_1_xml_element.html#adf1617815e82da7e2601d5ff7c736012" title="Construct an element.">XmlElement</a>(<span class="keyword">const</span> std::string&amp; value);</div>
<div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;    <a class="code" href="classduye_1_1_xml_element.html#adf1617815e82da7e2601d5ff7c736012" title="Construct an element.">XmlElement</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>&amp; element);</div>
<div class="line"><a name="l00929"></a><span class="lineno">  929</span>&#160;    <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>&amp; operator = (<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>&amp; base);</div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>();</div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;</div>
<div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_element.html#aa4d64b161b2ecf31f7af62655f71483d" title="Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists.">attribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;</div>
<div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_element.html#aa4d64b161b2ecf31f7af62655f71483d" title="Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists.">attribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">int</span>* i) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00946"></a><span class="lineno">  946</span>&#160;</div>
<div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_element.html#aa4d64b161b2ecf31f7af62655f71483d" title="Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists.">attribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">double</span>* d) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;</div>
<div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_element.html#a7e4f2f45cecbfc30708a00dd9b352648" title="QueryIntAttribute examines the attribute - it is an alternative to the Attribute() method with richer...">queryIntAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">int</span>* value) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_element.html#ae286f8b28e645399dd32ba0314d1e0d2" title="QueryUnsignedAttribute examines the attribute - see QueryIntAttribute().">queryUnsignedAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">unsigned</span>* value) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_element.html#a89a227dc21b726d5e3588747db5a12da" title="QueryBoolAttribute examines the attribute - see QueryIntAttribute(). Note that &#39;1&#39;, &#39;true&#39;, or &#39;yes&#39; are considered true, while &#39;0&#39;, &#39;false&#39; and &#39;no&#39; are considered false.">queryBoolAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">bool</span>* value) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_element.html#a773e27af04f91217edaf04f3058ce467" title="QueryDoubleAttribute examines the attribute - see QueryIntAttribute().">queryDoubleAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">double</span>* value) <span class="keyword">const</span>;</div>
<div class="line"><a name="l00976"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_element.html#ad595d308ef8fe1b8f6ef72288320f252">  976</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_element.html#ad595d308ef8fe1b8f6ef72288320f252" title="QueryFloatAttribute examines the attribute - see QueryIntAttribute().">queryFloatAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">float</span>* value)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00977"></a><span class="lineno">  977</span>&#160;        <span class="keywordtype">double</span> d = 0.0;</div>
<div class="line"><a name="l00978"></a><span class="lineno">  978</span>&#160;        <span class="keywordtype">int</span> result = <a class="code" href="classduye_1_1_xml_element.html#a773e27af04f91217edaf04f3058ce467" title="QueryDoubleAttribute examines the attribute - see QueryIntAttribute().">queryDoubleAttribute</a>(name, &amp;d);</div>
<div class="line"><a name="l00979"></a><span class="lineno">  979</span>&#160;        <span class="keywordflow">if</span> (result == XML_SUCCESS) {</div>
<div class="line"><a name="l00980"></a><span class="lineno">  980</span>&#160;            *value = (float)d;</div>
<div class="line"><a name="l00981"></a><span class="lineno">  981</span>&#160;        }</div>
<div class="line"><a name="l00982"></a><span class="lineno">  982</span>&#160;        </div>
<div class="line"><a name="l00983"></a><span class="lineno">  983</span>&#160;        <span class="keywordflow">return</span> result;</div>
<div class="line"><a name="l00984"></a><span class="lineno">  984</span>&#160;    }</div>
<div class="line"><a name="l00985"></a><span class="lineno">  985</span>&#160;</div>
<div class="line"><a name="l00987"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_element.html#a6c76078850bda1e9059fd63417d3bf8a">  987</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_element.html#a6c76078850bda1e9059fd63417d3bf8a" title="QueryStringAttribute examines the attribute - see QueryIntAttribute().">queryStringAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, std::string* value)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l00988"></a><span class="lineno">  988</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>* cstr = <a class="code" href="classduye_1_1_xml_element.html#aa4d64b161b2ecf31f7af62655f71483d" title="Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists.">attribute</a>(name);</div>
<div class="line"><a name="l00989"></a><span class="lineno">  989</span>&#160;        <span class="keywordflow">if</span> (cstr != NULL) {</div>
<div class="line"><a name="l00990"></a><span class="lineno">  990</span>&#160;            *value = std::string(cstr);</div>
<div class="line"><a name="l00991"></a><span class="lineno">  991</span>&#160;            <span class="keywordflow">return</span> XML_SUCCESS;</div>
<div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;        }</div>
<div class="line"><a name="l00993"></a><span class="lineno">  993</span>&#160;        </div>
<div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;        <span class="keywordflow">return</span> XML_NO_ATTRIBUTE;</div>
<div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;    }</div>
<div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;</div>
<div class="line"><a name="l01006"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_element.html#a13afc8381fa66f00a5e0b370de681d7a"> 1006</a></span>&#160;    <span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt; <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_element.html#a13afc8381fa66f00a5e0b370de681d7a" title="Template form of the attribute query which will try to read the attribute into the specified type...">queryValueAttribute</a>(<span class="keyword">const</span> std::string&amp; name, T* outValue)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>&#160;        <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* node = m_attributeSet.find(name);</div>
<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>&#160;        <span class="keywordflow">if</span> (node == NULL) {</div>
<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>&#160;            <span class="keywordflow">return</span> XML_NO_ATTRIBUTE;</div>
<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>&#160;        }</div>
<div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>&#160;</div>
<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>&#160;        std::stringstream sstream(node-&gt;<a class="code" href="classduye_1_1_xml_attribute.html#a5f886316ad3cf473612bb968e41d7dcb" title="Return the value of this attribute.">valueStr</a>());</div>
<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>&#160;        sstream &gt;&gt; *outValue;</div>
<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>&#160;        <span class="keywordflow">if</span> (!sstream.fail()) {</div>
<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>&#160;            <span class="keywordflow">return</span> XML_SUCCESS;</div>
<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>&#160;        }</div>
<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>&#160;        </div>
<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>&#160;        <span class="keywordflow">return</span> XML_WRONG_TYPE;</div>
<div class="line"><a name="l01019"></a><span class="lineno"> 1019</span>&#160;    }</div>
<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>&#160;</div>
<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_element.html#a13afc8381fa66f00a5e0b370de681d7a" title="Template form of the attribute query which will try to read the attribute into the specified type...">queryValueAttribute</a>(<span class="keyword">const</span> std::string&amp; name, std::string* outValue)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;        <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* node = m_attributeSet.find(name);</div>
<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;        <span class="keywordflow">if</span> (node == NULL) {</div>
<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160;            <span class="keywordflow">return</span> XML_NO_ATTRIBUTE;</div>
<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160;        }</div>
<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>&#160;        </div>
<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>&#160;        *outValue = node-&gt;<a class="code" href="classduye_1_1_xml_attribute.html#a5f886316ad3cf473612bb968e41d7dcb" title="Return the value of this attribute.">valueStr</a>();</div>
<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>&#160;        <span class="keywordflow">return</span> XML_SUCCESS;</div>
<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>&#160;    }</div>
<div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>&#160;</div>
<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_element.html#a628bf1aea52d83e5722e74113538adad" title="Sets an attribute of name to a given value. The attribute will be created if it does not exist...">setAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div>
<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>&#160;    <span class="keyword">const</span> std::string* <a class="code" href="classduye_1_1_xml_element.html#aa4d64b161b2ecf31f7af62655f71483d" title="Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists.">attribute</a>(<span class="keyword">const</span> std::string&amp; name) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>&#160;    <span class="keyword">const</span> std::string* <a class="code" href="classduye_1_1_xml_element.html#aa4d64b161b2ecf31f7af62655f71483d" title="Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists.">attribute</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">int</span>* i) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>&#160;    <span class="keyword">const</span> std::string* <a class="code" href="classduye_1_1_xml_element.html#aa4d64b161b2ecf31f7af62655f71483d" title="Given an attribute name, Attribute() returns the value for the attribute of that name, or null if none exists.">attribute</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">double</span>* d) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_element.html#a7e4f2f45cecbfc30708a00dd9b352648" title="QueryIntAttribute examines the attribute - it is an alternative to the Attribute() method with richer...">queryIntAttribute</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">int</span>* value) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_element.html#a773e27af04f91217edaf04f3058ce467" title="QueryDoubleAttribute examines the attribute - see QueryIntAttribute().">queryDoubleAttribute</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">double</span>* value) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>&#160;</div>
<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_element.html#a628bf1aea52d83e5722e74113538adad" title="Sets an attribute of name to a given value. The attribute will be created if it does not exist...">setAttribute</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> std::string&amp; value);</div>
<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_element.html#a628bf1aea52d83e5722e74113538adad" title="Sets an attribute of name to a given value. The attribute will be created if it does not exist...">setAttribute</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">int</span> value);</div>
<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>&#160;    <span class="keywordtype">void</span> setDoubleAttribute(<span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">double</span> value);</div>
<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>&#160;</div>
<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_element.html#a628bf1aea52d83e5722e74113538adad" title="Sets an attribute of name to a given value. The attribute will be created if it does not exist...">setAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">int</span> value);</div>
<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>&#160;</div>
<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>&#160;    <span class="keywordtype">void</span> setDoubleAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span>* name, <span class="keywordtype">double</span> value);</div>
<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>&#160;</div>
<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_element.html#abb9a5a054683996931db129475d1d721" title="Deletes an attribute with the given name.">removeAttribute</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* name);</div>
<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_element.html#abb9a5a054683996931db129475d1d721" title="Deletes an attribute with the given name.">removeAttribute</a>(<span class="keyword">const</span> std::string&amp; name) {   </div>
<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>&#160;        <a class="code" href="classduye_1_1_xml_element.html#abb9a5a054683996931db129475d1d721" title="Deletes an attribute with the given name.">removeAttribute</a>(name.c_str());    </div>
<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>&#160;    } </div>
<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>&#160;</div>
<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>&#160;    <span class="keyword">const</span> XmlAttribute* firstAttribute()<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>&#160;        <span class="keywordflow">return</span> m_attributeSet.first(); </div>
<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>&#160;    } </div>
<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>&#160;    </div>
<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>&#160;    XmlAttribute* firstAttribute() { </div>
<div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>&#160;        <span class="keywordflow">return</span> m_attributeSet.first(); </div>
<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>&#160;    }</div>
<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>&#160;    </div>
<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>&#160;    <span class="keyword">const</span> XmlAttribute* lastAttribute()<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>&#160;        <span class="keywordflow">return</span> m_attributeSet.last(); </div>
<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>&#160;    }</div>
<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>&#160;    </div>
<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>&#160;    XmlAttribute* lastAttribute() { </div>
<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160;        <span class="keywordflow">return</span> m_attributeSet.last(); </div>
<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160;    }</div>
<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>&#160;</div>
<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_element.html#a688496480e193f6375230eea3493e02a" title="Convenience function for easy access to the text inside an element. Although easy and concise...">getText</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>&#160;    <span class="keywordtype">void</span> setText(<span class="keyword">const</span> <span class="keywordtype">char</span>* value);</div>
<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>&#160;</div>
<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>&#160;    <span class="keyword">virtual</span> XmlNode* <a class="code" href="classduye_1_1_xml_element.html#a291cde29d8ec9051fb13bf23666d5c1f" title="Creates a new Element and returns it - the returned element is a copy.">clone</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>&#160;    <span class="comment">// Print the Element to a FILE stream.</span></div>
<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_element.html#a046112fa85b80dd1c09546dda19afe42" title="All GnyXml classes can print themselves to a filestream or the string class (GXmlString in non-STL mo...">print</a>(FILE* cfile, <span class="keywordtype">int</span> depth) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> xmlToStr(std::string&amp; outXml, <span class="keywordtype">int</span> depth) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>&#160;</div>
<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_element.html#a1016d8ab33cfaaba6b9388369cc71912" title="Attribtue parsing starts: next char past &#39;&lt;&#39; returns: next char past &#39;&gt;&#39;.">parse</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* p, XmlParsingData* data, XmlEncoding encoding);</div>
<div class="line"><a name="l01132"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_element.html#a1719b57e55e758658651eb562c81f4ca"> 1132</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_element.html#a1719b57e55e758658651eb562c81f4ca" title="Cast to a more defined type. Will return null not of the requested type.">toElement</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span>; } </div>
<div class="line"><a name="l01133"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_element.html#a728b7fadc8cfa7796a26cc3477067964"> 1133</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_element.html#a728b7fadc8cfa7796a26cc3477067964" title="Cast to a more defined type. Will return null not of the requested type.">toElement</a>() { <span class="keywordflow">return</span> <span class="keyword">this</span>; } </div>
<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>&#160;</div>
<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_element.html#ac383656d5d467642783681a4401a5ecb" title="Walk the XML tree visiting this node and all of its children.">accept</a>(<a class="code" href="classduye_1_1_xml_visitor.html" title="Implements the interface to the &quot;Visitor pattern&quot; (see the Accept() method.) If you call the Accept()...">XmlVisitor</a>* visitor) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>&#160;</div>
<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>&#160;    <span class="keywordtype">void</span> copyTo(<a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* target) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>&#160;    <span class="keywordtype">void</span> clearThis();   <span class="comment">// like clear, but initializes &#39;this&#39; object as well</span></div>
<div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>&#160;</div>
<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>&#160;    <span class="comment">// Used to be public [internal use]</span></div>
<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> streamIn(std::istream* in, std::string* tag);</div>
<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>&#160;</div>
<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_element.html#aa98cef8154f2d236a446a7977dcbc7a3" title="[internal use] Reads the &quot;value&quot; of the element – another element, or text. This should terminate wit...">readValue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* in, XmlParsingData* prevData, XmlEncoding encoding);</div>
<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>&#160;</div>
<div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>&#160;    <a class="code" href="classduye_1_1_xml_attribute_set.html" title="A class used to manage a group of attributes. It is only used internally, both by the ELEMENT and the...">XmlAttributeSet</a> m_attributeSet;</div>
<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>&#160;};</div>
<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>&#160;</div>
<div class="line"><a name="l01161"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_comment.html"> 1161</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_comment.html" title="An XML comment.">XmlComment</a> : <span class="keyword">public</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a> {</div>
<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l01164"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_comment.html#aa9c8848527d156b1d353dd98a6c92380"> 1164</a></span>&#160;    <a class="code" href="classduye_1_1_xml_comment.html#aa9c8848527d156b1d353dd98a6c92380" title="Constructs an empty comment.">XmlComment</a>() : <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>::NYXML_COMMENT) {}</div>
<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>&#160;    </div>
<div class="line"><a name="l01167"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_comment.html#a11e49b4979ec68dc276aff626cc3995d"> 1167</a></span>&#160;    <a class="code" href="classduye_1_1_xml_comment.html#a11e49b4979ec68dc276aff626cc3995d" title="Construct a comment from text.">XmlComment</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value) : <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>::NYXML_COMMENT) {</div>
<div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>&#160;        <a class="code" href="classduye_1_1_xml_node.html#a0bb13ec0183c9e10df92e0cd66d3a4db" title="Changes the value of the node. Defined as:">setValue</a>(value);</div>
<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>&#160;    }</div>
<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>&#160;    </div>
<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>&#160;    <a class="code" href="classduye_1_1_xml_comment.html#aa9c8848527d156b1d353dd98a6c92380" title="Constructs an empty comment.">XmlComment</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_comment.html" title="An XML comment.">XmlComment</a>&amp;);</div>
<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>&#160;    <a class="code" href="classduye_1_1_xml_comment.html" title="An XML comment.">XmlComment</a>&amp; operator=(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_comment.html" title="An XML comment.">XmlComment</a>&amp; base);</div>
<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>&#160;</div>
<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classduye_1_1_xml_comment.html" title="An XML comment.">XmlComment</a>() {}</div>
<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>&#160;</div>
<div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>&#160;    <span class="keyword">virtual</span> XmlNode* <a class="code" href="classduye_1_1_xml_comment.html#ae522e9a842ed282cf482c20f915e1397" title="Returns a copy of this Comment.">clone</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l01178"></a><span class="lineno"> 1178</span>&#160;    <span class="comment">// Write this Comment to a FILE stream.</span></div>
<div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_comment.html#ab761b076aa5e712eb2e22dd3f79ab8c9" title="All GnyXml classes can print themselves to a filestream or the string class (GXmlString in non-STL mo...">print</a>(FILE* cfile, <span class="keywordtype">int</span> depth) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>&#160;    <span class="keywordtype">void</span> xmlToStr(std::string&amp; outXml, <span class="keywordtype">int</span> depth) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>&#160;</div>
<div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_comment.html#aa72872c798ebf0469346c44678e7e544" title="Attribtue parsing starts: at the ! of the !– returns: next char past &#39;&gt;&#39;.">parse</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* p, XmlParsingData* data, XmlEncoding encoding);</div>
<div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>&#160;</div>
<div class="line"><a name="l01189"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_comment.html#a910dfdace515ad2f30870fd50151d590"> 1189</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_comment.html" title="An XML comment.">XmlComment</a>* <a class="code" href="classduye_1_1_xml_comment.html#a910dfdace515ad2f30870fd50151d590" title="Cast to a more defined type. Will return null not of the requested type.">toComment</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span>; } </div>
<div class="line"><a name="l01191"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_comment.html#a9cd5bb135150f31dc0a32805fcbbae9c"> 1191</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_comment.html" title="An XML comment.">XmlComment</a>* <a class="code" href="classduye_1_1_xml_comment.html#a9cd5bb135150f31dc0a32805fcbbae9c" title="Cast to a more defined type. Will return null if not of the requested type.">toComment</a>() { <span class="keywordflow">return</span> <span class="keyword">this</span>; } </div>
<div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>&#160;</div>
<div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_comment.html#a04170aa1a4f2467b8038f7d58acccfe8" title="Walk the XML tree visiting this node and all of its children.">accept</a>(<a class="code" href="classduye_1_1_xml_visitor.html" title="Implements the interface to the &quot;Visitor pattern&quot; (see the Accept() method.) If you call the Accept()...">XmlVisitor</a>* visitor) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>&#160;</div>
<div class="line"><a name="l01198"></a><span class="lineno"> 1198</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l01199"></a><span class="lineno"> 1199</span>&#160;    <span class="keywordtype">void</span> copyTo(<a class="code" href="classduye_1_1_xml_comment.html" title="An XML comment.">XmlComment</a>* target) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01200"></a><span class="lineno"> 1200</span>&#160;</div>
<div class="line"><a name="l01201"></a><span class="lineno"> 1201</span>&#160;    <span class="comment">// used to be public</span></div>
<div class="line"><a name="l01202"></a><span class="lineno"> 1202</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> streamIn(std::istream* in, std::string* tag);</div>
<div class="line"><a name="l01203"></a><span class="lineno"> 1203</span>&#160;};</div>
<div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>&#160;</div>
<div class="line"><a name="l01211"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_text.html"> 1211</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().">XmlText</a> : <span class="keyword">public</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a> {</div>
<div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>;</div>
<div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>&#160;    </div>
<div class="line"><a name="l01214"></a><span class="lineno"> 1214</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l01220"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_text.html#ad4ba50c44d1f0d9a8993a0ed1a8f9428"> 1220</a></span>&#160;    <a class="code" href="classduye_1_1_xml_text.html#ad4ba50c44d1f0d9a8993a0ed1a8f9428" title="Constructor for text element. By default, it is treated as normal, encoded text. If you want it be ou...">XmlText</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* initValue) : <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>::NYXML_TEXT) {</div>
<div class="line"><a name="l01221"></a><span class="lineno"> 1221</span>&#160;        <a class="code" href="classduye_1_1_xml_node.html#a0bb13ec0183c9e10df92e0cd66d3a4db" title="Changes the value of the node. Defined as:">setValue</a>(initValue);</div>
<div class="line"><a name="l01222"></a><span class="lineno"> 1222</span>&#160;        m_cdata = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01223"></a><span class="lineno"> 1223</span>&#160;    }</div>
<div class="line"><a name="l01224"></a><span class="lineno"> 1224</span>&#160;    </div>
<div class="line"><a name="l01225"></a><span class="lineno"> 1225</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().">XmlText</a>() {}</div>
<div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>&#160;</div>
<div class="line"><a name="l01228"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_text.html#aa39a69a4db2d68ee44e8403185412d01"> 1228</a></span>&#160;    <a class="code" href="classduye_1_1_xml_text.html#aa39a69a4db2d68ee44e8403185412d01" title="Constructor.">XmlText</a>(<span class="keyword">const</span> std::string&amp; initValue) : <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>::NYXML_TEXT) {</div>
<div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>&#160;        <a class="code" href="classduye_1_1_xml_node.html#a0bb13ec0183c9e10df92e0cd66d3a4db" title="Changes the value of the node. Defined as:">setValue</a>(initValue);</div>
<div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>&#160;        m_cdata = <span class="keyword">false</span>;</div>
<div class="line"><a name="l01231"></a><span class="lineno"> 1231</span>&#160;    }</div>
<div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>&#160;</div>
<div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>&#160;    <a class="code" href="classduye_1_1_xml_text.html#ad4ba50c44d1f0d9a8993a0ed1a8f9428" title="Constructor for text element. By default, it is treated as normal, encoded text. If you want it be ou...">XmlText</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().">XmlText</a>&amp; copy) : <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>::NYXML_TEXT) { </div>
<div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>&#160;        copy.copyTo(<span class="keyword">this</span>); </div>
<div class="line"><a name="l01235"></a><span class="lineno"> 1235</span>&#160;    }</div>
<div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>&#160;    </div>
<div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>&#160;    <a class="code" href="classduye_1_1_xml_text.html#ad4ba50c44d1f0d9a8993a0ed1a8f9428" title="Constructor for text element. By default, it is treated as normal, encoded text. If you want it be ou...">XmlText</a>&amp; operator = (<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_text.html#ad4ba50c44d1f0d9a8993a0ed1a8f9428" title="Constructor for text element. By default, it is treated as normal, encoded text. If you want it be ou...">XmlText</a>&amp; base) { </div>
<div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>&#160;        base.copyTo(<span class="keyword">this</span>); </div>
<div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>; </div>
<div class="line"><a name="l01240"></a><span class="lineno"> 1240</span>&#160;    }</div>
<div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>&#160;</div>
<div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>&#160;    <span class="comment">// Write this text object to a FILE stream.</span></div>
<div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_text.html#a5354f8e3a2b2169125ee308fced53a20" title="All GnyXml classes can print themselves to a filestream or the string class (GXmlString in non-STL mo...">print</a>(FILE* cfile, <span class="keywordtype">int</span> depth) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> xmlToStr(std::string&amp; outXml, <span class="keywordtype">int</span> depth) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>&#160;</div>
<div class="line"><a name="l01247"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_text.html#a4b8b87e8b1a4a694bf9f457c980cb7da"> 1247</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_text.html#a4b8b87e8b1a4a694bf9f457c980cb7da" title="Queries whether this represents text using a CDATA section.">cdata</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_cdata; }</div>
<div class="line"><a name="l01249"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_text.html#a28867fd26968298e32770504f41c2dfc"> 1249</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_text.html#a28867fd26968298e32770504f41c2dfc" title="Turns on or off a CDATA representation of text.">setCdata</a>(<span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_text.html#a4b8b87e8b1a4a694bf9f457c980cb7da" title="Queries whether this represents text using a CDATA section.">cdata</a>) { m_cdata = <a class="code" href="classduye_1_1_xml_text.html#a4b8b87e8b1a4a694bf9f457c980cb7da" title="Queries whether this represents text using a CDATA section.">cdata</a>; }</div>
<div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>&#160;</div>
<div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_text.html#aea6c981ba5896654cf7e37bbf88555d8" title="Cast to a more defined type. Will return null not of the requested type.">parse</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* p, XmlParsingData* data, XmlEncoding encoding);</div>
<div class="line"><a name="l01253"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_text.html#a990c133754619033ffd0d52d33ae4c33"> 1253</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().">XmlText</a>* <a class="code" href="classduye_1_1_xml_text.html#a990c133754619033ffd0d52d33ae4c33" title="Cast to a more defined type. Will return null not of the requested type.">toText</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span>; } </div>
<div class="line"><a name="l01255"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_text.html#aa3f92eacf86bd0699e73e126a5a178d0"> 1255</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().">XmlText</a>* <a class="code" href="classduye_1_1_xml_text.html#aa3f92eacf86bd0699e73e126a5a178d0" title="Cast to a more defined type. Will return null if not of the requested type.">toText</a>() { <span class="keywordflow">return</span> <span class="keyword">this</span>; } </div>
<div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>&#160;</div>
<div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_text.html#aefdfa21fac73a0bb9fd8620c6c68de6b" title="Walk the XML tree visiting this node and all of its children.">accept</a>(<a class="code" href="classduye_1_1_xml_visitor.html" title="Implements the interface to the &quot;Visitor pattern&quot; (see the Accept() method.) If you call the Accept()...">XmlVisitor</a>* content) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>&#160;</div>
<div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>&#160;<span class="keyword">protected</span> :</div>
<div class="line"><a name="l01264"></a><span class="lineno"> 1264</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_text.html#a957e55d9a64f17b06cef97649149308b" title="[internal use] Creates a new Element and returns it.">clone</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l01265"></a><span class="lineno"> 1265</span>&#160;    <span class="keywordtype">void</span> copyTo(<a class="code" href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().">XmlText</a>* target) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01266"></a><span class="lineno"> 1266</span>&#160;</div>
<div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>&#160;    <span class="comment">// returns true if all white space and new lines</span></div>
<div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>&#160;    <span class="keywordtype">bool</span> blank() <span class="keyword">const</span>; </div>
<div class="line"><a name="l01269"></a><span class="lineno"> 1269</span>&#160;    <span class="comment">// [internal use]</span></div>
<div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> streamIn(std::istream* in, std::string* tag);</div>
<div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>&#160;</div>
<div class="line"><a name="l01272"></a><span class="lineno"> 1272</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>&#160;    <span class="comment">// true if this should be input and output as a CDATA style text element</span></div>
<div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>&#160;    <span class="keywordtype">bool</span> m_cdata;           </div>
<div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>&#160;};</div>
<div class="line"><a name="l01276"></a><span class="lineno"> 1276</span>&#160;</div>
<div class="line"><a name="l01291"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_declaration.html"> 1291</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file.">XmlDeclaration</a> : <span class="keyword">public</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a> {</div>
<div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l01294"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_declaration.html#aeaf91492ff1d269a8767173808dea122"> 1294</a></span>&#160;    <a class="code" href="classduye_1_1_xml_declaration.html#aeaf91492ff1d269a8767173808dea122" title="Construct an empty declaration.">XmlDeclaration</a>() : <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>::NYXML_DECLARAGON) {}</div>
<div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>&#160;</div>
<div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>&#160;    <a class="code" href="classduye_1_1_xml_declaration.html#aeaf91492ff1d269a8767173808dea122" title="Construct an empty declaration.">XmlDeclaration</a>(<span class="keyword">const</span> std::string&amp; <a class="code" href="classduye_1_1_xml_declaration.html#a5c437bd76f8f2c0299a3bc3715f068d1" title="Version. Will return an empty string if none was found.">version</a>,</div>
<div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>&#160;        <span class="keyword">const</span> std::string&amp; encoding,</div>
<div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>&#160;        <span class="keyword">const</span> std::string&amp; <a class="code" href="classduye_1_1_xml_declaration.html#aba6db219826f79a10e80a1b6ec937219" title="Is this a standalone document?">standalone</a>);</div>
<div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>&#160;</div>
<div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>&#160;    <a class="code" href="classduye_1_1_xml_declaration.html#aeaf91492ff1d269a8767173808dea122" title="Construct an empty declaration.">XmlDeclaration</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_declaration.html#a5c437bd76f8f2c0299a3bc3715f068d1" title="Version. Will return an empty string if none was found.">version</a>,</div>
<div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>* encoding,</div>
<div class="line"><a name="l01304"></a><span class="lineno"> 1304</span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_declaration.html#aba6db219826f79a10e80a1b6ec937219" title="Is this a standalone document?">standalone</a>);</div>
<div class="line"><a name="l01305"></a><span class="lineno"> 1305</span>&#160;</div>
<div class="line"><a name="l01306"></a><span class="lineno"> 1306</span>&#160;    <a class="code" href="classduye_1_1_xml_declaration.html#aeaf91492ff1d269a8767173808dea122" title="Construct an empty declaration.">XmlDeclaration</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file.">XmlDeclaration</a>&amp; copy);</div>
<div class="line"><a name="l01307"></a><span class="lineno"> 1307</span>&#160;    <a class="code" href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file.">XmlDeclaration</a>&amp; operator = (<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file.">XmlDeclaration</a>&amp; copy);</div>
<div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>&#160;</div>
<div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file.">XmlDeclaration</a>() {}</div>
<div class="line"><a name="l01310"></a><span class="lineno"> 1310</span>&#160;</div>
<div class="line"><a name="l01312"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_declaration.html#a5c437bd76f8f2c0299a3bc3715f068d1"> 1312</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_declaration.html#a5c437bd76f8f2c0299a3bc3715f068d1" title="Version. Will return an empty string if none was found.">version</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_version.c_str(); }</div>
<div class="line"><a name="l01314"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_declaration.html#aba58de4c490c85248291b60a7410bbf8"> 1314</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_declaration.html#aba58de4c490c85248291b60a7410bbf8" title="Encoding. Will return an empty string if none was found.">encoding</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_encoding.c_str(); }</div>
<div class="line"><a name="l01316"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_declaration.html#aba6db219826f79a10e80a1b6ec937219"> 1316</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_declaration.html#aba6db219826f79a10e80a1b6ec937219" title="Is this a standalone document?">standalone</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_standalone.c_str(); }</div>
<div class="line"><a name="l01317"></a><span class="lineno"> 1317</span>&#160;</div>
<div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_declaration.html#a83d2834249f96fe9dc2e0fd589a1af71" title="Creates a copy of this Declaration and returns it.">clone</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>&#160;    <span class="comment">// Print this declaration to a FILE stream.</span></div>
<div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> print(FILE* cfile, <span class="keywordtype">int</span> depth, std::string* str) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01322"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_declaration.html#a3e3a634a7c060253d6f38a28213639b9"> 1322</a></span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_declaration.html#a3e3a634a7c060253d6f38a28213639b9" title="All GnyXml classes can print themselves to a filestream or the string class (GXmlString in non-STL mo...">print</a>(FILE* cfile, <span class="keywordtype">int</span> depth)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>&#160;        print(cfile, depth, 0);</div>
<div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>&#160;    }</div>
<div class="line"><a name="l01325"></a><span class="lineno"> 1325</span>&#160;    <span class="keywordtype">void</span> xmlToStr(std::string&amp; outXml, <span class="keywordtype">int</span> depth) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>&#160;</div>
<div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_declaration.html#a5519c43a57aa51a9e344c55749a1831f" title="Cast to a more defined type. Will return null not of the requested type.">parse</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* p, XmlParsingData* data, XmlEncoding encoding);</div>
<div class="line"><a name="l01329"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_declaration.html#ad742c8306484bd853a3156603cfc2f2a"> 1329</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file.">XmlDeclaration</a>* <a class="code" href="classduye_1_1_xml_declaration.html#ad742c8306484bd853a3156603cfc2f2a" title="Cast to a more defined type. Will return null not of the requested type.">toDeclaration</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span>; } </div>
<div class="line"><a name="l01331"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_declaration.html#aed9ec38dccc8a896c11238f2a1315912"> 1331</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file.">XmlDeclaration</a>* <a class="code" href="classduye_1_1_xml_declaration.html#aed9ec38dccc8a896c11238f2a1315912" title="Cast to a more defined type. Will return null if not of the requested type.">toDeclaration</a>() { <span class="keywordflow">return</span> <span class="keyword">this</span>; } </div>
<div class="line"><a name="l01332"></a><span class="lineno"> 1332</span>&#160;</div>
<div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_declaration.html#ac5a1661738cab9369fb00b0ab040e981" title="Walk the XML tree visiting this node and all of its children.">accept</a>(<a class="code" href="classduye_1_1_xml_visitor.html" title="Implements the interface to the &quot;Visitor pattern&quot; (see the Accept() method.) If you call the Accept()...">XmlVisitor</a>* visitor) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01337"></a><span class="lineno"> 1337</span>&#160;</div>
<div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>&#160;    <span class="keywordtype">void</span> copyTo(<a class="code" href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file.">XmlDeclaration</a>* target) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>&#160;    <span class="comment">// used to be public</span></div>
<div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> streamIn(std::istream* in, std::string* tag);</div>
<div class="line"><a name="l01342"></a><span class="lineno"> 1342</span>&#160;</div>
<div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>&#160;    std::string m_version;</div>
<div class="line"><a name="l01345"></a><span class="lineno"> 1345</span>&#160;    std::string m_encoding;</div>
<div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>&#160;    std::string m_standalone;</div>
<div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>&#160;};</div>
<div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>&#160;</div>
<div class="line"><a name="l01357"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_unknown.html"> 1357</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a> : <span class="keyword">public</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a> {</div>
<div class="line"><a name="l01358"></a><span class="lineno"> 1358</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l01359"></a><span class="lineno"> 1359</span>&#160;    <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>() : <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>(XmlNode::NYXML_UNKNOWN) {}</div>
<div class="line"><a name="l01360"></a><span class="lineno"> 1360</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>() {}</div>
<div class="line"><a name="l01361"></a><span class="lineno"> 1361</span>&#160;</div>
<div class="line"><a name="l01362"></a><span class="lineno"> 1362</span>&#160;    <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>&amp; copy) : <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>(XmlNode::NYXML_UNKNOWN) { </div>
<div class="line"><a name="l01363"></a><span class="lineno"> 1363</span>&#160;        copy.copyTo(<span class="keyword">this</span>); </div>
<div class="line"><a name="l01364"></a><span class="lineno"> 1364</span>&#160;    }</div>
<div class="line"><a name="l01365"></a><span class="lineno"> 1365</span>&#160;    </div>
<div class="line"><a name="l01366"></a><span class="lineno"> 1366</span>&#160;    <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>&amp; operator = (<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>&amp; copy) { </div>
<div class="line"><a name="l01367"></a><span class="lineno"> 1367</span>&#160;        copy.copyTo(<span class="keyword">this</span>); </div>
<div class="line"><a name="l01368"></a><span class="lineno"> 1368</span>&#160;        <span class="keywordflow">return</span> *<span class="keyword">this</span>; </div>
<div class="line"><a name="l01369"></a><span class="lineno"> 1369</span>&#160;    }</div>
<div class="line"><a name="l01370"></a><span class="lineno"> 1370</span>&#160;</div>
<div class="line"><a name="l01372"></a><span class="lineno"> 1372</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_unknown.html#a5b5801b2d195ac681f8671df2d470112" title="Creates a copy of this Unknown and returns it.">clone</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l01373"></a><span class="lineno"> 1373</span>&#160;    <span class="comment">// Print this Unknown to a FILE stream.</span></div>
<div class="line"><a name="l01374"></a><span class="lineno"> 1374</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_unknown.html#a6f6a15c642fdf66a94b0f77afe27a599" title="All GnyXml classes can print themselves to a filestream or the string class (GXmlString in non-STL mo...">print</a>(FILE* cfile, <span class="keywordtype">int</span> depth) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01375"></a><span class="lineno"> 1375</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> xmlToStr(std::string&amp; outXml, <span class="keywordtype">int</span> depth) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01376"></a><span class="lineno"> 1376</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_unknown.html#a42a3e3c64ca479848f266ba6ee6aa22b" title="Cast to a more defined type. Will return null not of the requested type.">parse</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* p, XmlParsingData* data, XmlEncoding encoding);</div>
<div class="line"><a name="l01378"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_unknown.html#ab585d8ed0cd2d587a12236bf269e7c55"> 1378</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>* <a class="code" href="classduye_1_1_xml_unknown.html#ab585d8ed0cd2d587a12236bf269e7c55" title="Cast to a more defined type. Will return null not of the requested type.">toUnknown</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span>; } </div>
<div class="line"><a name="l01380"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_unknown.html#a62925576e44e3f8d0b319c380f9204f9"> 1380</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>* <a class="code" href="classduye_1_1_xml_unknown.html#a62925576e44e3f8d0b319c380f9204f9" title="Cast to a more defined type. Will return null if not of the requested type.">toUnknown</a>() { <span class="keywordflow">return</span> <span class="keyword">this</span>; } </div>
<div class="line"><a name="l01381"></a><span class="lineno"> 1381</span>&#160;</div>
<div class="line"><a name="l01385"></a><span class="lineno"> 1385</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_unknown.html#aae01cd65796aef280f001785cfefaae5" title="Walk the XML tree visiting this node and all of its children.">accept</a>(<a class="code" href="classduye_1_1_xml_visitor.html" title="Implements the interface to the &quot;Visitor pattern&quot; (see the Accept() method.) If you call the Accept()...">XmlVisitor</a>* content) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01386"></a><span class="lineno"> 1386</span>&#160;</div>
<div class="line"><a name="l01387"></a><span class="lineno"> 1387</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l01388"></a><span class="lineno"> 1388</span>&#160;    <span class="keywordtype">void</span> copyTo(<a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>* target) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01389"></a><span class="lineno"> 1389</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> streamIn(std::istream* in, std::string* tag);</div>
<div class="line"><a name="l01390"></a><span class="lineno"> 1390</span>&#160;};</div>
<div class="line"><a name="l01391"></a><span class="lineno"> 1391</span>&#160;</div>
<div class="line"><a name="l01397"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_document.html"> 1397</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a> : <span class="keyword">public</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a> {</div>
<div class="line"><a name="l01398"></a><span class="lineno"> 1398</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l01400"></a><span class="lineno"> 1400</span>&#160;    <a class="code" href="classduye_1_1_xml_document.html#a34456a0c325c4a8ac82133c29bf674ac" title="Create an empty document, that has no name.">XmlDocument</a>();</div>
<div class="line"><a name="l01402"></a><span class="lineno"> 1402</span>&#160;    <a class="code" href="classduye_1_1_xml_document.html#a34456a0c325c4a8ac82133c29bf674ac" title="Create an empty document, that has no name.">XmlDocument</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* documentName);</div>
<div class="line"><a name="l01403"></a><span class="lineno"> 1403</span>&#160;</div>
<div class="line"><a name="l01405"></a><span class="lineno"> 1405</span>&#160;    <a class="code" href="classduye_1_1_xml_document.html#a34456a0c325c4a8ac82133c29bf674ac" title="Create an empty document, that has no name.">XmlDocument</a>(<span class="keyword">const</span> std::string&amp; documentName);</div>
<div class="line"><a name="l01406"></a><span class="lineno"> 1406</span>&#160;    <a class="code" href="classduye_1_1_xml_document.html#a34456a0c325c4a8ac82133c29bf674ac" title="Create an empty document, that has no name.">XmlDocument</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>&amp; copy);</div>
<div class="line"><a name="l01407"></a><span class="lineno"> 1407</span>&#160;    <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>&amp; operator = (<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>&amp; copy);</div>
<div class="line"><a name="l01408"></a><span class="lineno"> 1408</span>&#160;</div>
<div class="line"><a name="l01409"></a><span class="lineno"> 1409</span>&#160;    <span class="keyword">virtual</span> ~<a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>() {}</div>
<div class="line"><a name="l01410"></a><span class="lineno"> 1410</span>&#160;</div>
<div class="line"><a name="l01416"></a><span class="lineno"> 1416</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_document.html#a8694e2e47962f6e0674a9a248ef1a1be" title="Load a file using the current document value. Returns true if successful. Will delete any existing do...">loadFile</a>(XmlEncoding encoding = XML_DEFAULT_ENCODING);</div>
<div class="line"><a name="l01418"></a><span class="lineno"> 1418</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_document.html#af955f3ca14139f1b104bedcb52be2e9c" title="Save a file using the current document value. Returns true if successful.">saveFile</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l01420"></a><span class="lineno"> 1420</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_document.html#a8694e2e47962f6e0674a9a248ef1a1be" title="Load a file using the current document value. Returns true if successful. Will delete any existing do...">loadFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename, XmlEncoding encoding = XML_DEFAULT_ENCODING);</div>
<div class="line"><a name="l01422"></a><span class="lineno"> 1422</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_document.html#af955f3ca14139f1b104bedcb52be2e9c" title="Save a file using the current document value. Returns true if successful.">saveFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* filename) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01429"></a><span class="lineno"> 1429</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_document.html#a8694e2e47962f6e0674a9a248ef1a1be" title="Load a file using the current document value. Returns true if successful. Will delete any existing do...">loadFile</a>(FILE* file, XmlEncoding encoding = XML_DEFAULT_ENCODING);</div>
<div class="line"><a name="l01430"></a><span class="lineno"> 1430</span>&#160;    <span class="keywordtype">bool</span> load(<span class="keyword">const</span> <span class="keywordtype">char</span>* content, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> length, XmlEncoding encoding = XML_DEFAULT_ENCODING);</div>
<div class="line"><a name="l01432"></a><span class="lineno"> 1432</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_document.html#af955f3ca14139f1b104bedcb52be2e9c" title="Save a file using the current document value. Returns true if successful.">saveFile</a>(FILE* file) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01434"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_document.html#aa226d1946072c480679c380f8171ca23"> 1434</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_document.html#aa226d1946072c480679c380f8171ca23" title="STL std::string version.">loadFile</a>(<span class="keyword">const</span> std::string&amp; filename, XmlEncoding encoding = XML_DEFAULT_ENCODING) {</div>
<div class="line"><a name="l01435"></a><span class="lineno"> 1435</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_document.html#a8694e2e47962f6e0674a9a248ef1a1be" title="Load a file using the current document value. Returns true if successful. Will delete any existing do...">loadFile</a>(filename.c_str(), encoding);</div>
<div class="line"><a name="l01436"></a><span class="lineno"> 1436</span>&#160;    }</div>
<div class="line"><a name="l01437"></a><span class="lineno"> 1437</span>&#160;    </div>
<div class="line"><a name="l01439"></a><span class="lineno"> 1439</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_document.html#af955f3ca14139f1b104bedcb52be2e9c" title="Save a file using the current document value. Returns true if successful.">saveFile</a>(<span class="keyword">const</span> std::string&amp; filename)<span class="keyword"> const </span>{</div>
<div class="line"><a name="l01440"></a><span class="lineno"> 1440</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_document.html#af955f3ca14139f1b104bedcb52be2e9c" title="Save a file using the current document value. Returns true if successful.">saveFile</a>(filename.c_str());</div>
<div class="line"><a name="l01441"></a><span class="lineno"> 1441</span>&#160;    }</div>
<div class="line"><a name="l01442"></a><span class="lineno"> 1442</span>&#160;</div>
<div class="line"><a name="l01448"></a><span class="lineno"> 1448</span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_document.html#a06405104fc28af5dbe7eb55c5b4a9959" title="Parse the given null terminated block of xml data. Passing in an encoding to this method (either XML_...">parse</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* p, XmlParsingData* data = 0, XmlEncoding encoding = XML_DEFAULT_ENCODING);</div>
<div class="line"><a name="l01449"></a><span class="lineno"> 1449</span>&#160;</div>
<div class="line"><a name="l01455"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_document.html#aad4b38c2ad297cace9e46c4c46bcf122"> 1455</a></span>&#160;    <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_document.html#aad4b38c2ad297cace9e46c4c46bcf122" title="Get the root element – the only top level element – of the document. In well formed XML...">rootElement</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#ab5c9a40066cadeabd618f748cfa6b87f" title="Convenience function to get through elements.">firstChildElement</a>(); }</div>
<div class="line"><a name="l01456"></a><span class="lineno"> 1456</span>&#160;    <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_document.html#aad4b38c2ad297cace9e46c4c46bcf122" title="Get the root element – the only top level element – of the document. In well formed XML...">rootElement</a>() { <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_node.html#ab5c9a40066cadeabd618f748cfa6b87f" title="Convenience function to get through elements.">firstChildElement</a>(); }</div>
<div class="line"><a name="l01457"></a><span class="lineno"> 1457</span>&#160;</div>
<div class="line"><a name="l01464"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_document.html#a4696daf7d7cefa47310256cb0a3c3385"> 1464</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_document.html#a4696daf7d7cefa47310256cb0a3c3385" title="If an error occurs, Error will be set to true. Also,.">error</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_error; }</div>
<div class="line"><a name="l01465"></a><span class="lineno"> 1465</span>&#160;</div>
<div class="line"><a name="l01467"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_document.html#a7b716506c42ec95ae6ef3dae33e9ca4d"> 1467</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_document.html#a7b716506c42ec95ae6ef3dae33e9ca4d" title="Contains a textual (english) description of the error if one occurs.">errorDesc</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_errorDesc.c_str(); }</div>
<div class="line"><a name="l01468"></a><span class="lineno"> 1468</span>&#160;</div>
<div class="line"><a name="l01473"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_document.html#a39bb4dcbc505fdc0f4136a70e7445e5f"> 1473</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_document.html#a39bb4dcbc505fdc0f4136a70e7445e5f" title="Generally, you probably want the error string ( ErrorDesc() ). But if you prefer the ErrorId...">errorId</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_errorId; }</div>
<div class="line"><a name="l01474"></a><span class="lineno"> 1474</span>&#160;</div>
<div class="line"><a name="l01483"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_document.html#a74a198fef33079be41c63932b8291040"> 1483</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="classduye_1_1_xml_document.html#a74a198fef33079be41c63932b8291040" title="Returns the location (if known) of the error. The first column is column 1, and the first row is row ...">errorRow</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_errorLocation.m_row + 1; }</div>
<div class="line"><a name="l01485"></a><span class="lineno"> 1485</span>&#160;    <span class="keywordtype">int</span> errorCol()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_errorLocation.m_col + 1; }  </div>
<div class="line"><a name="l01486"></a><span class="lineno"> 1486</span>&#160;</div>
<div class="line"><a name="l01512"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_document.html#ac7ccceb858268826e7fa0881dc58eb92"> 1512</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_document.html#ac7ccceb858268826e7fa0881dc58eb92" title="SetTabSize() allows the error reporting functions (ErrorRow() and ErrorCol()) to report the correct v...">setTabSize</a>(<span class="keywordtype">int</span> tabsize) { m_tabsize = tabsize; }</div>
<div class="line"><a name="l01513"></a><span class="lineno"> 1513</span>&#160;</div>
<div class="line"><a name="l01514"></a><span class="lineno"> 1514</span>&#160;    <span class="keywordtype">int</span> tabSize()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_tabsize; }</div>
<div class="line"><a name="l01515"></a><span class="lineno"> 1515</span>&#160;</div>
<div class="line"><a name="l01520"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_document.html#aa975cc3de7922148edd660061f2b1a0b"> 1520</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_document.html#aa975cc3de7922148edd660061f2b1a0b" title="If you have handled the error, it can be reset with this call. The error state is automatically clear...">clearError</a>() { </div>
<div class="line"><a name="l01521"></a><span class="lineno"> 1521</span>&#160;        m_error = <span class="keyword">false</span>; </div>
<div class="line"><a name="l01522"></a><span class="lineno"> 1522</span>&#160;        m_errorId = 0; </div>
<div class="line"><a name="l01523"></a><span class="lineno"> 1523</span>&#160;        m_errorDesc = <span class="stringliteral">&quot;&quot;</span>; </div>
<div class="line"><a name="l01524"></a><span class="lineno"> 1524</span>&#160;        m_errorLocation.m_row = 0;</div>
<div class="line"><a name="l01525"></a><span class="lineno"> 1525</span>&#160;        m_errorLocation.m_col = 0; </div>
<div class="line"><a name="l01526"></a><span class="lineno"> 1526</span>&#160;    }</div>
<div class="line"><a name="l01527"></a><span class="lineno"> 1527</span>&#160;</div>
<div class="line"><a name="l01528"></a><span class="lineno"> 1528</span>&#160;    <span class="comment">// Write the document to standard out using formatted printing (&quot;pretty print&quot;).</span></div>
<div class="line"><a name="l01529"></a><span class="lineno"> 1529</span>&#160;    <span class="keywordtype">void</span> print()<span class="keyword"> const </span>{ print(stdout, 0); }</div>
<div class="line"><a name="l01530"></a><span class="lineno"> 1530</span>&#160;    <span class="comment">// return really size</span></div>
<div class="line"><a name="l01531"></a><span class="lineno"> 1531</span>&#160;    <span class="keywordtype">void</span> xmlToStr(std::string&amp; outXml)<span class="keyword"> const </span>{ xmlToStr(outXml, 0); }</div>
<div class="line"><a name="l01532"></a><span class="lineno"> 1532</span>&#160;</div>
<div class="line"><a name="l01538"></a><span class="lineno"> 1538</span>&#160;     <span class="comment">//char* PrintToMemory() const; </span></div>
<div class="line"><a name="l01539"></a><span class="lineno"> 1539</span>&#160;</div>
<div class="line"><a name="l01541"></a><span class="lineno"> 1541</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> print(FILE* cfile, <span class="keywordtype">int</span> depth = 0) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01542"></a><span class="lineno"> 1542</span>&#160;    <span class="keywordtype">void</span> xmlToStr(std::string&amp; outXml, <span class="keywordtype">int</span> depth) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01543"></a><span class="lineno"> 1543</span>&#160;    </div>
<div class="line"><a name="l01544"></a><span class="lineno"> 1544</span>&#160;    <span class="comment">// [internal use]</span></div>
<div class="line"><a name="l01545"></a><span class="lineno"> 1545</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_document.html#acca31bd965a48f9a8dfbb7b33c4f14be" title="Cast to a more defined type. Will return null not of the requested type.">setError</a>(<span class="keywordtype">int</span> err, <span class="keyword">const</span> <span class="keywordtype">char</span>* errorLocation, XmlParsingData* prevData, XmlEncoding encoding);</div>
<div class="line"><a name="l01546"></a><span class="lineno"> 1546</span>&#160;</div>
<div class="line"><a name="l01548"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_document.html#a2a7371581ef15a4ba23b03d24e8c0fd5"> 1548</a></span>&#160;    <span class="keyword">virtual</span> <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>* <a class="code" href="classduye_1_1_xml_document.html#a2a7371581ef15a4ba23b03d24e8c0fd5" title="Cast to a more defined type. Will return null not of the requested type.">toDocument</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span>; } </div>
<div class="line"><a name="l01550"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_document.html#ae746e171e5611e9557fa4a3747393821"> 1550</a></span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>* <a class="code" href="classduye_1_1_xml_document.html#ae746e171e5611e9557fa4a3747393821" title="Cast to a more defined type. Will return null if not of the requested type.">toDocument</a>() { <span class="keywordflow">return</span> <span class="keyword">this</span>; } </div>
<div class="line"><a name="l01551"></a><span class="lineno"> 1551</span>&#160;</div>
<div class="line"><a name="l01552"></a><span class="lineno"> 1552</span>&#160;    <span class="comment">// Walk the XML tree visiting this node and all of its children. </span></div>
<div class="line"><a name="l01553"></a><span class="lineno"> 1553</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_document.html#a6362b1d0f171301a19d36e7fc541f85c" title="Accept a hierchical visit the nodes in the GnyXML DOM. Every node in the XML tree will be conditional...">accept</a>(<a class="code" href="classduye_1_1_xml_visitor.html" title="Implements the interface to the &quot;Visitor pattern&quot; (see the Accept() method.) If you call the Accept()...">XmlVisitor</a>* content) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01554"></a><span class="lineno"> 1554</span>&#160;</div>
<div class="line"><a name="l01555"></a><span class="lineno"> 1555</span>&#160;<span class="keyword">protected</span> :</div>
<div class="line"><a name="l01556"></a><span class="lineno"> 1556</span>&#160;    <span class="comment">// [internal use]</span></div>
<div class="line"><a name="l01557"></a><span class="lineno"> 1557</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_document.html#aa4fbc0fe876ebaeb51e9d6a6a1132410" title="Create an exact duplicate of this node and return it. The memory must be deleted by the caller...">clone</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l01558"></a><span class="lineno"> 1558</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> streamIn(std::istream* in, std::string* tag);</div>
<div class="line"><a name="l01559"></a><span class="lineno"> 1559</span>&#160;</div>
<div class="line"><a name="l01560"></a><span class="lineno"> 1560</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l01561"></a><span class="lineno"> 1561</span>&#160;    <span class="keywordtype">void</span> copyTo(<a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>* target) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01562"></a><span class="lineno"> 1562</span>&#160;</div>
<div class="line"><a name="l01563"></a><span class="lineno"> 1563</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l01564"></a><span class="lineno"> 1564</span>&#160;    <span class="keywordtype">bool</span>        m_error;</div>
<div class="line"><a name="l01565"></a><span class="lineno"> 1565</span>&#160;    <span class="keywordtype">int</span>         m_errorId;</div>
<div class="line"><a name="l01566"></a><span class="lineno"> 1566</span>&#160;    std::string m_errorDesc;</div>
<div class="line"><a name="l01567"></a><span class="lineno"> 1567</span>&#160;    <span class="keywordtype">int</span>         m_tabsize;</div>
<div class="line"><a name="l01568"></a><span class="lineno"> 1568</span>&#160;    <a class="code" href="classduye_1_1_xml_cursor.html" title="Internal structure for tracking location of items in the XML file.">XmlCursor</a>   m_errorLocation;</div>
<div class="line"><a name="l01569"></a><span class="lineno"> 1569</span>&#160;    <span class="keywordtype">bool</span>        m_useMicrosoftBOM;      <span class="comment">// the UTF-8 BOM were found when read. Note this, and try to write.</span></div>
<div class="line"><a name="l01570"></a><span class="lineno"> 1570</span>&#160;};</div>
<div class="line"><a name="l01571"></a><span class="lineno"> 1571</span>&#160;</div>
<div class="line"><a name="l01592"></a><span class="lineno"> 1592</span>&#160; <span class="comment">/*</span></div>
<div class="line"><a name="l01593"></a><span class="lineno"> 1593</span>&#160;<span class="comment">GXmlElement* root = document.FirstChildElement( &quot;Document&quot; );</span></div>
<div class="line"><a name="l01594"></a><span class="lineno"> 1594</span>&#160;<span class="comment">if ( root )</span></div>
<div class="line"><a name="l01595"></a><span class="lineno"> 1595</span>&#160;<span class="comment">{</span></div>
<div class="line"><a name="l01596"></a><span class="lineno"> 1596</span>&#160;<span class="comment">GXmlElement* element = root-&gt;FirstChildElement( &quot;Element&quot; );</span></div>
<div class="line"><a name="l01597"></a><span class="lineno"> 1597</span>&#160;<span class="comment">if ( element )</span></div>
<div class="line"><a name="l01598"></a><span class="lineno"> 1598</span>&#160;<span class="comment">{</span></div>
<div class="line"><a name="l01599"></a><span class="lineno"> 1599</span>&#160;<span class="comment">    GXmlElement* child = element-&gt;FirstChildElement( &quot;Child&quot; );</span></div>
<div class="line"><a name="l01600"></a><span class="lineno"> 1600</span>&#160;<span class="comment">    if ( child )</span></div>
<div class="line"><a name="l01601"></a><span class="lineno"> 1601</span>&#160;<span class="comment">    {</span></div>
<div class="line"><a name="l01602"></a><span class="lineno"> 1602</span>&#160;<span class="comment">        GXmlElement* child2 = child-&gt;NextSiblingElement( &quot;Child&quot; );</span></div>
<div class="line"><a name="l01603"></a><span class="lineno"> 1603</span>&#160;<span class="comment">        if ( child2 )</span></div>
<div class="line"><a name="l01604"></a><span class="lineno"> 1604</span>&#160;<span class="comment">        {</span></div>
<div class="line"><a name="l01605"></a><span class="lineno"> 1605</span>&#160;<span class="comment">            // Finally do something useful.</span></div>
<div class="line"><a name="l01606"></a><span class="lineno"> 1606</span>&#160;<span class="comment">    @endverbatim</span></div>
<div class="line"><a name="l01607"></a><span class="lineno"> 1607</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l01608"></a><span class="lineno"> 1608</span>&#160;<span class="comment">    And that doesn&#39;t even cover &quot;else&quot; cases. GXmlHandle addresses the verbosity</span></div>
<div class="line"><a name="l01609"></a><span class="lineno"> 1609</span>&#160;<span class="comment">    of such code. A GXmlHandle checks for null  pointers so it is perfectly safe </span></div>
<div class="line"><a name="l01610"></a><span class="lineno"> 1610</span>&#160;<span class="comment">    and correct to use:</span></div>
<div class="line"><a name="l01611"></a><span class="lineno"> 1611</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l01612"></a><span class="lineno"> 1612</span>&#160;<span class="comment">    @verbatim</span></div>
<div class="line"><a name="l01613"></a><span class="lineno"> 1613</span>&#160;<span class="comment">    GXmlHandle docHandle( &amp;document );</span></div>
<div class="line"><a name="l01614"></a><span class="lineno"> 1614</span>&#160;<span class="comment">    GXmlElement* child2 = docHandle.FirstChild( &quot;Document&quot; ).FirstChild( &quot;Element&quot; ).Child( &quot;Child&quot;, 1 ).ToElement();</span></div>
<div class="line"><a name="l01615"></a><span class="lineno"> 1615</span>&#160;<span class="comment">    if ( child2 )</span></div>
<div class="line"><a name="l01616"></a><span class="lineno"> 1616</span>&#160;<span class="comment">    {</span></div>
<div class="line"><a name="l01617"></a><span class="lineno"> 1617</span>&#160;<span class="comment">        // do something useful</span></div>
<div class="line"><a name="l01618"></a><span class="lineno"> 1618</span>&#160;<span class="comment">    @endverbatim</span></div>
<div class="line"><a name="l01619"></a><span class="lineno"> 1619</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l01620"></a><span class="lineno"> 1620</span>&#160;<span class="comment">    Which is MUCH more concise and useful.</span></div>
<div class="line"><a name="l01621"></a><span class="lineno"> 1621</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l01622"></a><span class="lineno"> 1622</span>&#160;<span class="comment">    It is also safe to copy handles - internally they are nothing more than node pointers.</span></div>
<div class="line"><a name="l01623"></a><span class="lineno"> 1623</span>&#160;<span class="comment">    @verbatim</span></div>
<div class="line"><a name="l01624"></a><span class="lineno"> 1624</span>&#160;<span class="comment">    GXmlHandle handleCopy = handle;</span></div>
<div class="line"><a name="l01625"></a><span class="lineno"> 1625</span>&#160;<span class="comment">    @endverbatim</span></div>
<div class="line"><a name="l01626"></a><span class="lineno"> 1626</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l01627"></a><span class="lineno"> 1627</span>&#160;<span class="comment">    What they should not be used for is iteration:</span></div>
<div class="line"><a name="l01628"></a><span class="lineno"> 1628</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l01629"></a><span class="lineno"> 1629</span>&#160;<span class="comment">    @verbatim</span></div>
<div class="line"><a name="l01630"></a><span class="lineno"> 1630</span>&#160;<span class="comment">    int i=0; </span></div>
<div class="line"><a name="l01631"></a><span class="lineno"> 1631</span>&#160;<span class="comment">    while ( true )</span></div>
<div class="line"><a name="l01632"></a><span class="lineno"> 1632</span>&#160;<span class="comment">    {</span></div>
<div class="line"><a name="l01633"></a><span class="lineno"> 1633</span>&#160;<span class="comment">        GXmlElement* child = docHandle.FirstChild( &quot;Document&quot; ).FirstChild( &quot;Element&quot; ).Child( &quot;Child&quot;, i ).ToElement();</span></div>
<div class="line"><a name="l01634"></a><span class="lineno"> 1634</span>&#160;<span class="comment">        if ( !child )</span></div>
<div class="line"><a name="l01635"></a><span class="lineno"> 1635</span>&#160;<span class="comment">            break;</span></div>
<div class="line"><a name="l01636"></a><span class="lineno"> 1636</span>&#160;<span class="comment">        // do something</span></div>
<div class="line"><a name="l01637"></a><span class="lineno"> 1637</span>&#160;<span class="comment">        ++i;</span></div>
<div class="line"><a name="l01638"></a><span class="lineno"> 1638</span>&#160;<span class="comment">    }</span></div>
<div class="line"><a name="l01639"></a><span class="lineno"> 1639</span>&#160;<span class="comment">    @endverbatim</span></div>
<div class="line"><a name="l01640"></a><span class="lineno"> 1640</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l01641"></a><span class="lineno"> 1641</span>&#160;<span class="comment">    It seems reasonable, but it is in fact two embedded while loops. The Child method is </span></div>
<div class="line"><a name="l01642"></a><span class="lineno"> 1642</span>&#160;<span class="comment">    a linear walk to find the element, so this code would iterate much more than it needs </span></div>
<div class="line"><a name="l01643"></a><span class="lineno"> 1643</span>&#160;<span class="comment">    to. Instead, prefer:</span></div>
<div class="line"><a name="l01644"></a><span class="lineno"> 1644</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l01645"></a><span class="lineno"> 1645</span>&#160;<span class="comment">    @verbatim</span></div>
<div class="line"><a name="l01646"></a><span class="lineno"> 1646</span>&#160;<span class="comment">    GXmlElement* child = docHandle.FirstChild( &quot;Document&quot; ).FirstChild( &quot;Element&quot; ).FirstChild( &quot;Child&quot; ).ToElement();</span></div>
<div class="line"><a name="l01647"></a><span class="lineno"> 1647</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l01648"></a><span class="lineno"> 1648</span>&#160;<span class="comment">    for( child; child; child=child-&gt;NextSiblingElement() )</span></div>
<div class="line"><a name="l01649"></a><span class="lineno"> 1649</span>&#160;<span class="comment">    {</span></div>
<div class="line"><a name="l01650"></a><span class="lineno"> 1650</span>&#160;<span class="comment">        // do something</span></div>
<div class="line"><a name="l01651"></a><span class="lineno"> 1651</span>&#160;<span class="comment">    }</span></div>
<div class="line"><a name="l01652"></a><span class="lineno"> 1652</span>&#160;<span class="comment">    @endverbatim</span></div>
<div class="line"><a name="l01653"></a><span class="lineno"> 1653</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l01654"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_handle.html"> 1654</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_handle.html" title="A GXmlHandle is a class that wraps a node pointer with null checks; this is an incredibly useful thin...">XmlHandle</a> {</div>
<div class="line"><a name="l01655"></a><span class="lineno"> 1655</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l01657"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543"> 1657</a></span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a>(<a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* node) { m_node = <a class="code" href="classduye_1_1_xml_handle.html#a34202c8a1a7ba3bad454376bded10955">node</a>; }</div>
<div class="line"><a name="l01659"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_handle.html#a87d9b1bfd27642642ce91fad541c9522"> 1659</a></span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#a87d9b1bfd27642642ce91fad541c9522" title="Copy constructor.">XmlHandle</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_handle.html" title="A GXmlHandle is a class that wraps a node pointer with null checks; this is an incredibly useful thin...">XmlHandle</a>&amp; ref) { m_node = ref.m_node; }</div>
<div class="line"><a name="l01660"></a><span class="lineno"> 1660</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html" title="A GXmlHandle is a class that wraps a node pointer with null checks; this is an incredibly useful thin...">XmlHandle</a> operator=(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_handle.html" title="A GXmlHandle is a class that wraps a node pointer with null checks; this is an incredibly useful thin...">XmlHandle</a>&amp; ref) { </div>
<div class="line"><a name="l01661"></a><span class="lineno"> 1661</span>&#160;        <span class="keywordflow">if</span> (&amp;ref != <span class="keyword">this</span>) {</div>
<div class="line"><a name="l01662"></a><span class="lineno"> 1662</span>&#160;            m_node = ref.m_node;</div>
<div class="line"><a name="l01663"></a><span class="lineno"> 1663</span>&#160;            <span class="keywordflow">return</span> *<span class="keyword">this</span>; </div>
<div class="line"><a name="l01664"></a><span class="lineno"> 1664</span>&#160;        }</div>
<div class="line"><a name="l01665"></a><span class="lineno"> 1665</span>&#160;    }</div>
<div class="line"><a name="l01666"></a><span class="lineno"> 1666</span>&#160;</div>
<div class="line"><a name="l01668"></a><span class="lineno"> 1668</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a> <a class="code" href="classduye_1_1_xml_handle.html#aeaf0a3602fc378ab7166ff850a7edf77" title="Return a handle to the first child node.">firstChild</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l01670"></a><span class="lineno"> 1670</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a> <a class="code" href="classduye_1_1_xml_handle.html#aeaf0a3602fc378ab7166ff850a7edf77" title="Return a handle to the first child node.">firstChild</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01672"></a><span class="lineno"> 1672</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a> <a class="code" href="classduye_1_1_xml_handle.html#ae7fb9ef0bb17a19981693df6059ed58c" title="Return a handle to the first child element.">firstChildElement</a>() <span class="keyword">const</span>;</div>
<div class="line"><a name="l01674"></a><span class="lineno"> 1674</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a> <a class="code" href="classduye_1_1_xml_handle.html#ae7fb9ef0bb17a19981693df6059ed58c" title="Return a handle to the first child element.">firstChildElement</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01675"></a><span class="lineno"> 1675</span>&#160;</div>
<div class="line"><a name="l01680"></a><span class="lineno"> 1680</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a> <a class="code" href="classduye_1_1_xml_handle.html#ad4e0843674c390084f3e34c9dd0efb99" title="Return a handle to the &quot;index&quot; child with the given name. The first child is 0, the second 1...">child</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value, <span class="keywordtype">int</span> index) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01681"></a><span class="lineno"> 1681</span>&#160;    </div>
<div class="line"><a name="l01686"></a><span class="lineno"> 1686</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a> <a class="code" href="classduye_1_1_xml_handle.html#ad4e0843674c390084f3e34c9dd0efb99" title="Return a handle to the &quot;index&quot; child with the given name. The first child is 0, the second 1...">child</a>(<span class="keywordtype">int</span> index) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01687"></a><span class="lineno"> 1687</span>&#160;</div>
<div class="line"><a name="l01693"></a><span class="lineno"> 1693</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a> <a class="code" href="classduye_1_1_xml_handle.html#ac7c47efc26a1bc69c354fec55f56010f" title="Return a handle to the &quot;index&quot; child element with the given name. The first child element is 0...">childElement</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* value, <span class="keywordtype">int</span> index) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01694"></a><span class="lineno"> 1694</span>&#160;</div>
<div class="line"><a name="l01700"></a><span class="lineno"> 1700</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a> <a class="code" href="classduye_1_1_xml_handle.html#ac7c47efc26a1bc69c354fec55f56010f" title="Return a handle to the &quot;index&quot; child element with the given name. The first child element is 0...">childElement</a>(<span class="keywordtype">int</span> index) <span class="keyword">const</span>;</div>
<div class="line"><a name="l01701"></a><span class="lineno"> 1701</span>&#160;</div>
<div class="line"><a name="l01702"></a><span class="lineno"> 1702</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a> <a class="code" href="classduye_1_1_xml_handle.html#aeaf0a3602fc378ab7166ff850a7edf77" title="Return a handle to the first child node.">firstChild</a>(<span class="keyword">const</span> std::string&amp; value)<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l01703"></a><span class="lineno"> 1703</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_handle.html#aeaf0a3602fc378ab7166ff850a7edf77" title="Return a handle to the first child node.">firstChild</a>(value.c_str()); </div>
<div class="line"><a name="l01704"></a><span class="lineno"> 1704</span>&#160;    }</div>
<div class="line"><a name="l01705"></a><span class="lineno"> 1705</span>&#160;    </div>
<div class="line"><a name="l01706"></a><span class="lineno"> 1706</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a> <a class="code" href="classduye_1_1_xml_handle.html#ae7fb9ef0bb17a19981693df6059ed58c" title="Return a handle to the first child element.">firstChildElement</a>(<span class="keyword">const</span> std::string&amp; value)<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l01707"></a><span class="lineno"> 1707</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_handle.html#ae7fb9ef0bb17a19981693df6059ed58c" title="Return a handle to the first child element.">firstChildElement</a>(value.c_str()); </div>
<div class="line"><a name="l01708"></a><span class="lineno"> 1708</span>&#160;    }</div>
<div class="line"><a name="l01709"></a><span class="lineno"> 1709</span>&#160;</div>
<div class="line"><a name="l01710"></a><span class="lineno"> 1710</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a> <a class="code" href="classduye_1_1_xml_handle.html#ad4e0843674c390084f3e34c9dd0efb99" title="Return a handle to the &quot;index&quot; child with the given name. The first child is 0, the second 1...">child</a>(<span class="keyword">const</span> std::string&amp; value, <span class="keywordtype">int</span> index)<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l01711"></a><span class="lineno"> 1711</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_handle.html#ad4e0843674c390084f3e34c9dd0efb99" title="Return a handle to the &quot;index&quot; child with the given name. The first child is 0, the second 1...">child</a>(value.c_str(), index); </div>
<div class="line"><a name="l01712"></a><span class="lineno"> 1712</span>&#160;    }</div>
<div class="line"><a name="l01713"></a><span class="lineno"> 1713</span>&#160;    </div>
<div class="line"><a name="l01714"></a><span class="lineno"> 1714</span>&#160;    <a class="code" href="classduye_1_1_xml_handle.html#ad8f20c3cbda416326e5fa4b01e849543" title="Create a handle from any node (at any depth of the tree.) This can be a null pointer.">XmlHandle</a> <a class="code" href="classduye_1_1_xml_handle.html#ac7c47efc26a1bc69c354fec55f56010f" title="Return a handle to the &quot;index&quot; child element with the given name. The first child element is 0...">childElement</a>(<span class="keyword">const</span> std::string&amp; value, <span class="keywordtype">int</span> index)<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l01715"></a><span class="lineno"> 1715</span>&#160;        <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_handle.html#ac7c47efc26a1bc69c354fec55f56010f" title="Return a handle to the &quot;index&quot; child element with the given name. The first child element is 0...">childElement</a>(value.c_str(), index); </div>
<div class="line"><a name="l01716"></a><span class="lineno"> 1716</span>&#160;    }</div>
<div class="line"><a name="l01717"></a><span class="lineno"> 1717</span>&#160;</div>
<div class="line"><a name="l01721"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_handle.html#ac7dc11cbc2ea7743a12eeb50c8937497"> 1721</a></span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_handle.html#ac7dc11cbc2ea7743a12eeb50c8937497" title="Return the handle as a XmlNode. This may return null.">toNode</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_node; } </div>
<div class="line"><a name="l01722"></a><span class="lineno"> 1722</span>&#160;</div>
<div class="line"><a name="l01726"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_handle.html#aaf7ed88ed4c65ffe47776f63f63e9811"> 1726</a></span>&#160;    <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_handle.html#aaf7ed88ed4c65ffe47776f63f63e9811" title="Return the handle as a GXmlElement. This may return null.">toElement</a>()<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l01727"></a><span class="lineno"> 1727</span>&#160;        <span class="keywordflow">return</span> ((m_node &amp;&amp; m_node-&gt;<a class="code" href="classduye_1_1_xml_node.html#ad7c8f1487e11257b0e121b0d29d5f479" title="Cast to a more defined type. Will return null if not of the requested type.">toElement</a>()) ? m_node-&gt;<a class="code" href="classduye_1_1_xml_node.html#ad7c8f1487e11257b0e121b0d29d5f479" title="Cast to a more defined type. Will return null if not of the requested type.">toElement</a>() : 0); </div>
<div class="line"><a name="l01728"></a><span class="lineno"> 1728</span>&#160;    }</div>
<div class="line"><a name="l01729"></a><span class="lineno"> 1729</span>&#160;    </div>
<div class="line"><a name="l01733"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_handle.html#a2dfbc8f5f303e1ac5ea5ce06e56cd564"> 1733</a></span>&#160;    <a class="code" href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().">XmlText</a>* <a class="code" href="classduye_1_1_xml_handle.html#a2dfbc8f5f303e1ac5ea5ce06e56cd564" title="Return the handle as a XmlText. This may return null.">toText</a>()<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l01734"></a><span class="lineno"> 1734</span>&#160;        <span class="keywordflow">return</span> ((m_node &amp;&amp; m_node-&gt;<a class="code" href="classduye_1_1_xml_node.html#a2cea4f5e12dd637bd97ba66280f94cea" title="Cast to a more defined type. Will return null if not of the requested type.">toText</a>()) ? m_node-&gt;<a class="code" href="classduye_1_1_xml_node.html#a2cea4f5e12dd637bd97ba66280f94cea" title="Cast to a more defined type. Will return null if not of the requested type.">toText</a>() : 0); </div>
<div class="line"><a name="l01735"></a><span class="lineno"> 1735</span>&#160;    }</div>
<div class="line"><a name="l01736"></a><span class="lineno"> 1736</span>&#160;    </div>
<div class="line"><a name="l01740"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_handle.html#ada5162b3aa12cf26c73e14b47795ab48"> 1740</a></span>&#160;    <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>* <a class="code" href="classduye_1_1_xml_handle.html#ada5162b3aa12cf26c73e14b47795ab48" title="Return the handle as a GXmlUnknown. This may return null.">toUnknown</a>()<span class="keyword"> const </span>{ </div>
<div class="line"><a name="l01741"></a><span class="lineno"> 1741</span>&#160;        <span class="keywordflow">return</span> ((m_node &amp;&amp; m_node-&gt;<a class="code" href="classduye_1_1_xml_node.html#a19e3ea30dacb192a913f4ddbb59c633b" title="Cast to a more defined type. Will return null if not of the requested type.">toUnknown</a>() ) ? m_node-&gt;<a class="code" href="classduye_1_1_xml_node.html#a19e3ea30dacb192a913f4ddbb59c633b" title="Cast to a more defined type. Will return null if not of the requested type.">toUnknown</a>() : 0); </div>
<div class="line"><a name="l01742"></a><span class="lineno"> 1742</span>&#160;    }</div>
<div class="line"><a name="l01743"></a><span class="lineno"> 1743</span>&#160;</div>
<div class="line"><a name="l01748"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_handle.html#a34202c8a1a7ba3bad454376bded10955"> 1748</a></span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* <a class="code" href="classduye_1_1_xml_handle.html#a34202c8a1a7ba3bad454376bded10955">node</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_handle.html#ac7dc11cbc2ea7743a12eeb50c8937497" title="Return the handle as a XmlNode. This may return null.">toNode</a>(); } </div>
<div class="line"><a name="l01749"></a><span class="lineno"> 1749</span>&#160;</div>
<div class="line"><a name="l01754"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_handle.html#acf58dcd905b9017606e7316fe22892ac"> 1754</a></span>&#160;    <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>* <a class="code" href="classduye_1_1_xml_handle.html#acf58dcd905b9017606e7316fe22892ac">element</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_handle.html#aaf7ed88ed4c65ffe47776f63f63e9811" title="Return the handle as a GXmlElement. This may return null.">toElement</a>(); }</div>
<div class="line"><a name="l01755"></a><span class="lineno"> 1755</span>&#160;</div>
<div class="line"><a name="l01761"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_handle.html#a004c8d21525252331f4954a5e36ad54d"> 1761</a></span>&#160;    <a class="code" href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().">XmlText</a>* <a class="code" href="classduye_1_1_xml_handle.html#a004c8d21525252331f4954a5e36ad54d">text</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_handle.html#a2dfbc8f5f303e1ac5ea5ce06e56cd564" title="Return the handle as a XmlText. This may return null.">toText</a>(); }</div>
<div class="line"><a name="l01762"></a><span class="lineno"> 1762</span>&#160;    </div>
<div class="line"><a name="l01767"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_handle.html#a405bce4aa913198d051a2a573e8b47aa"> 1767</a></span>&#160;    <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>* <a class="code" href="classduye_1_1_xml_handle.html#a405bce4aa913198d051a2a573e8b47aa">unknown</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classduye_1_1_xml_handle.html#ada5162b3aa12cf26c73e14b47795ab48" title="Return the handle as a GXmlUnknown. This may return null.">toUnknown</a>(); }</div>
<div class="line"><a name="l01768"></a><span class="lineno"> 1768</span>&#160;</div>
<div class="line"><a name="l01769"></a><span class="lineno"> 1769</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l01770"></a><span class="lineno"> 1770</span>&#160;    <a class="code" href="classduye_1_1_xml_node.html" title="The parent class for everything in the Document Object Model. (Except for attributes). Nodes have siblings, a parent, and children. A node can be in a document, or stand on its own. The type of a XmlNode can be queried, and it can be cast to its more defined type.">XmlNode</a>* m_node;</div>
<div class="line"><a name="l01771"></a><span class="lineno"> 1771</span>&#160;};</div>
<div class="line"><a name="l01772"></a><span class="lineno"> 1772</span>&#160;</div>
<div class="line"><a name="l01793"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_printer.html"> 1793</a></span>&#160;<span class="keyword">class </span><a class="code" href="classduye_1_1_xml_printer.html" title="Print to memory functionality. The GXmlPrinter is useful when you need to:">XmlPrinter</a> : <span class="keyword">public</span> <a class="code" href="classduye_1_1_xml_visitor.html" title="Implements the interface to the &quot;Visitor pattern&quot; (see the Accept() method.) If you call the Accept()...">XmlVisitor</a> {</div>
<div class="line"><a name="l01794"></a><span class="lineno"> 1794</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l01795"></a><span class="lineno"> 1795</span>&#160;    <a class="code" href="classduye_1_1_xml_printer.html" title="Print to memory functionality. The GXmlPrinter is useful when you need to:">XmlPrinter</a>() </div>
<div class="line"><a name="l01796"></a><span class="lineno"> 1796</span>&#160;        : m_depth(0)</div>
<div class="line"><a name="l01797"></a><span class="lineno"> 1797</span>&#160;        , m_simpleTextPrint(<span class="keyword">false</span>)</div>
<div class="line"><a name="l01798"></a><span class="lineno"> 1798</span>&#160;        , m_buffer()</div>
<div class="line"><a name="l01799"></a><span class="lineno"> 1799</span>&#160;        , m_indent(<span class="stringliteral">&quot;&quot;</span>)</div>
<div class="line"><a name="l01800"></a><span class="lineno"> 1800</span>&#160;        , m_lineBreak(<span class="stringliteral">&quot;\n&quot;</span>) {}</div>
<div class="line"><a name="l01801"></a><span class="lineno"> 1801</span>&#160;</div>
<div class="line"><a name="l01802"></a><span class="lineno"> 1802</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_printer.html#a9aafdfedf4e43fe16acf7ad050bb2a39" title="Visit a document.">visitEnter</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>&amp; doc);</div>
<div class="line"><a name="l01803"></a><span class="lineno"> 1803</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_printer.html#a31307d01bbfe25b3e091576daf789c3f" title="Visit a document.">visitExit</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_document.html" title="Always the top level node. A document binds together all the XML pieces. It can be saved...">XmlDocument</a>&amp; doc);</div>
<div class="line"><a name="l01804"></a><span class="lineno"> 1804</span>&#160;    </div>
<div class="line"><a name="l01805"></a><span class="lineno"> 1805</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_printer.html#a9aafdfedf4e43fe16acf7ad050bb2a39" title="Visit a document.">visitEnter</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>&amp; element, <span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_attribute.html" title="An attribute is a name-value pair. Elements have an arbitrary number of attributes, each with a unique name.">XmlAttribute</a>* firstAttribute);</div>
<div class="line"><a name="l01806"></a><span class="lineno"> 1806</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_printer.html#a31307d01bbfe25b3e091576daf789c3f" title="Visit a document.">visitExit</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_element.html" title="The element is a container class. It has a value, the element name, and can contain other elements...">XmlElement</a>&amp; element);</div>
<div class="line"><a name="l01807"></a><span class="lineno"> 1807</span>&#160;</div>
<div class="line"><a name="l01808"></a><span class="lineno"> 1808</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_printer.html#aaf7908e7bb583fc2c522e122ef032e12" title="Visit a declaration.">visit</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_declaration.html" title="In correct XML the declaration is the first entry in the file.">XmlDeclaration</a>&amp; declaration);</div>
<div class="line"><a name="l01809"></a><span class="lineno"> 1809</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_printer.html#aaf7908e7bb583fc2c522e122ef032e12" title="Visit a declaration.">visit</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_text.html" title="XML text. A text node can have 2 ways to output the next. &quot;normal&quot; output and CDATA. It will default to the mode it was parsed from the XML file and you generally want to leave it alone, but you can change the output mode with SetCDATA() and query it with CDATA().">XmlText</a>&amp; text);</div>
<div class="line"><a name="l01810"></a><span class="lineno"> 1810</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_printer.html#aaf7908e7bb583fc2c522e122ef032e12" title="Visit a declaration.">visit</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_comment.html" title="An XML comment.">XmlComment</a>&amp; comment);</div>
<div class="line"><a name="l01811"></a><span class="lineno"> 1811</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classduye_1_1_xml_printer.html#aaf7908e7bb583fc2c522e122ef032e12" title="Visit a declaration.">visit</a>(<span class="keyword">const</span> <a class="code" href="classduye_1_1_xml_unknown.html" title="Any tag that tinyXml doesn&#39;t recognize is saved as an unknown. It is a tag of text, but should not be modified. It will be written back to the XML, unchanged, when the file is saved.">XmlUnknown</a>&amp; unknown);</div>
<div class="line"><a name="l01812"></a><span class="lineno"> 1812</span>&#160;</div>
<div class="line"><a name="l01817"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_printer.html#a1225526922f05fb86601f3b8fb2981a2"> 1817</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_printer.html#a1225526922f05fb86601f3b8fb2981a2" title="Set the indent characters for printing. By default 4 spaces but tab () is also useful, or null/empty string for no indentation.">setIndent</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_printer.html#a90ca4b079079665c7396a1356825773b" title="Query the indention string.">indent</a>)  { m_indent = indent ? indent : <span class="stringliteral">&quot;&quot;</span>; }</div>
<div class="line"><a name="l01819"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_printer.html#a90ca4b079079665c7396a1356825773b"> 1819</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_printer.html#a90ca4b079079665c7396a1356825773b" title="Query the indention string.">indent</a>() { <span class="keywordflow">return</span> m_indent.c_str(); }</div>
<div class="line"><a name="l01820"></a><span class="lineno"> 1820</span>&#160;    </div>
<div class="line"><a name="l01826"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_printer.html#a9953783b2bfdafa33f0587d71094e411"> 1826</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_printer.html#a9953783b2bfdafa33f0587d71094e411" title="Set the line breaking string. By default set to newline ( ). Some operating systems prefer other char...">setLineBreak</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_printer.html#a4ef083d20db1bc2c824953eef8ecb7ab" title="Query the current line breaking string.">lineBreak</a>) { m_lineBreak = lineBreak ? lineBreak : <span class="stringliteral">&quot;&quot;</span>; }</div>
<div class="line"><a name="l01828"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_printer.html#a4ef083d20db1bc2c824953eef8ecb7ab"> 1828</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_printer.html#a4ef083d20db1bc2c824953eef8ecb7ab" title="Query the current line breaking string.">lineBreak</a>() { <span class="keywordflow">return</span> m_lineBreak.c_str(); }</div>
<div class="line"><a name="l01829"></a><span class="lineno"> 1829</span>&#160;</div>
<div class="line"><a name="l01834"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_printer.html#ae5f1b73e8dee46adf7783fcbcaa50292"> 1834</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classduye_1_1_xml_printer.html#ae5f1b73e8dee46adf7783fcbcaa50292" title="Switch over to &quot;stream printing&quot; which is the most dense formatting without linebreaks. Common when the XML is needed for network transmission.">setStreamPrinting</a>() { </div>
<div class="line"><a name="l01835"></a><span class="lineno"> 1835</span>&#160;        m_indent = <span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line"><a name="l01836"></a><span class="lineno"> 1836</span>&#160;        m_lineBreak = <span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line"><a name="l01837"></a><span class="lineno"> 1837</span>&#160;    }   </div>
<div class="line"><a name="l01838"></a><span class="lineno"> 1838</span>&#160;    </div>
<div class="line"><a name="l01840"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_printer.html#ab1c55909aaa1908f0610ec62e09b1864"> 1840</a></span>&#160;    <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classduye_1_1_xml_printer.html#ab1c55909aaa1908f0610ec62e09b1864" title="Return the result.">cStr</a>() { <span class="keywordflow">return</span> m_buffer.c_str(); }</div>
<div class="line"><a name="l01842"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_printer.html#ab45cbd7e9be2abb08005b7fce76c7aa2"> 1842</a></span>&#160;    <span class="keywordtype">size_t</span> <a class="code" href="classduye_1_1_xml_printer.html#ab45cbd7e9be2abb08005b7fce76c7aa2" title="Return the length of the result string.">size</a>() { <span class="keywordflow">return</span> m_buffer.size(); }</div>
<div class="line"><a name="l01843"></a><span class="lineno"> 1843</span>&#160;</div>
<div class="line"><a name="l01845"></a><span class="lineno"><a class="code" href="classduye_1_1_xml_printer.html#a6d2731c379d377e4f5b67e9f781bbc9c"> 1845</a></span>&#160;    <span class="keyword">const</span> std::string&amp; <a class="code" href="classduye_1_1_xml_printer.html#a6d2731c379d377e4f5b67e9f781bbc9c" title="Return the result.">str</a>() { <span class="keywordflow">return</span> m_buffer; }</div>
<div class="line"><a name="l01846"></a><span class="lineno"> 1846</span>&#160;</div>
<div class="line"><a name="l01847"></a><span class="lineno"> 1847</span>&#160;<span class="keyword">private</span>:</div>
<div class="line"><a name="l01848"></a><span class="lineno"> 1848</span>&#160;    <span class="keywordtype">void</span> doIndent() {</div>
<div class="line"><a name="l01849"></a><span class="lineno"> 1849</span>&#160;        <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; m_depth; i++) {</div>
<div class="line"><a name="l01850"></a><span class="lineno"> 1850</span>&#160;            m_buffer += m_indent;</div>
<div class="line"><a name="l01851"></a><span class="lineno"> 1851</span>&#160;        }</div>
<div class="line"><a name="l01852"></a><span class="lineno"> 1852</span>&#160;    }</div>
<div class="line"><a name="l01853"></a><span class="lineno"> 1853</span>&#160;    </div>
<div class="line"><a name="l01854"></a><span class="lineno"> 1854</span>&#160;    <span class="keywordtype">void</span> doLineBreak() {</div>
<div class="line"><a name="l01855"></a><span class="lineno"> 1855</span>&#160;        m_buffer += m_lineBreak;</div>
<div class="line"><a name="l01856"></a><span class="lineno"> 1856</span>&#160;    }</div>
<div class="line"><a name="l01857"></a><span class="lineno"> 1857</span>&#160;</div>
<div class="line"><a name="l01858"></a><span class="lineno"> 1858</span>&#160;    <span class="keywordtype">int</span> m_depth;</div>
<div class="line"><a name="l01859"></a><span class="lineno"> 1859</span>&#160;    <span class="keywordtype">bool</span> m_simpleTextPrint;</div>
<div class="line"><a name="l01860"></a><span class="lineno"> 1860</span>&#160;    std::string m_buffer;</div>
<div class="line"><a name="l01861"></a><span class="lineno"> 1861</span>&#160;    std::string m_indent;</div>
<div class="line"><a name="l01862"></a><span class="lineno"> 1862</span>&#160;    std::string m_lineBreak;</div>
<div class="line"><a name="l01863"></a><span class="lineno"> 1863</span>&#160;};</div>
<div class="line"><a name="l01864"></a><span class="lineno"> 1864</span>&#160;</div>
<div class="line"><a name="l01865"></a><span class="lineno"> 1865</span>&#160;}</div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Feb 27 2017 15:19:14 for Duye SDK User Wizard by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.3
</small></address>
</body>
</html>
